From bce6287c933058b0429737c03ba6ff57fcdda7e2 Mon Sep 17 00:00:00 2001 From: fbormann Date: Tue, 1 Nov 2016 20:37:56 -0300 Subject: [PATCH] task going for review, added support for listgroup collapse #201 --- core/static/css/base/amadeus.css | 5 +++++ courses/templates/course/index.html | 25 +++++++++++++++++++++++-- courses/views.py | 4 ++-- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/core/static/css/base/amadeus.css b/core/static/css/base/amadeus.css index a0107d1..1bb5f5e 100644 --- a/core/static/css/base/amadeus.css +++ b/core/static/css/base/amadeus.css @@ -418,6 +418,11 @@ ul, li { .course, .subject, .topic{ padding-top: 0px; padding-bottom: 0px; } .course-detail{padding-top: 10px; padding-bottom: 10px;} +.category-course-link{ + font-size: 24px; + color: black !important; +} + /* Menu link remove radius */ .nav-pills > li > a { border-radius: 0px; diff --git a/courses/templates/course/index.html b/courses/templates/course/index.html index a4f5785..617e8cb 100644 --- a/courses/templates/course/index.html +++ b/courses/templates/course/index.html @@ -110,7 +110,28 @@
- {% if courses|length > 0 %} + {% for category in categorys_courses %} +
+
+
+

+ {{category.name}} +

+ +
+
+ {% for course in category.course_category.all %} + {% if user in course.students.all %} + {% include "course/course_card.html" %} + {% endif %} + {% endfor %} +
+
+
+ + + {% endfor %} +