From: Seth Woodworth Date: Thu, 18 Apr 2013 16:42:33 +0000 (-0400) Subject: adding link to course with course url, and css styles, fixes #98 X-Git-Tag: release-20150131~453 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=07fd35f3f17a6b1fac3c7f064f2864780673c646;p=oweals%2Fkarmaworld.git adding link to course with course url, and css styles, fixes #98 --- diff --git a/karmaworld/assets/css/global.css b/karmaworld/assets/css/global.css index afb432e..64b7b5a 100644 --- a/karmaworld/assets/css/global.css +++ b/karmaworld/assets/css/global.css @@ -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; diff --git a/karmaworld/templates/courses/course_detail.html b/karmaworld/templates/courses/course_detail.html index 04e050c..8ef92b3 100644 --- a/karmaworld/templates/courses/course_detail.html +++ b/karmaworld/templates/courses/course_detail.html @@ -41,7 +41,13 @@
+ {% if course.url %} + + {{ course.name }} + + {% else %} {{ course.name }} + {% endif %}