adding link to course with course url, and css styles, fixes #98
authorSeth Woodworth <seth@sethish.com>
Thu, 18 Apr 2013 16:42:33 +0000 (12:42 -0400)
committerSeth Woodworth <seth@sethish.com>
Thu, 18 Apr 2013 16:42:33 +0000 (12:42 -0400)
karmaworld/assets/css/global.css
karmaworld/templates/courses/course_detail.html

index afb432e708e380179e5606e5552f7a3fa5d8a7bd..64b7b5ae466364946109074f69052177cac83f3b 100644 (file)
@@ -738,6 +738,14 @@ p.text a
   font-size: 22px;
 }
 
+#course_name a {
+  color: black;
+}
+
+#course_name:hover a{
+  text-decoration: underline;
+}
+
 .doubleline
 {
   border: dotted black;
index 04e050cf5ad1289fcd693791b1afc2cfd275b944..8ef92b3ef1a49f93602c3c2828859304acd93e63 100644 (file)
 
       <div class="row">
         <div id="course_name" class="twelve columns">
+          {% if course.url %}
+          <a rel="nofollow" href="{{ course.url }}">
+            {{ course.name }}
+          </a>
+          {% else %}
           {{ course.name }}
+          {% endif %}
         </div><!-- /note_name -->
       </div>