Commit f2d885cd92c02b1ac476e0e86c88f741d86ad2f5
1 parent
e8c4deca
Exists in
master
and in
3 other branches
fixed breadcrumbs past links and category card is now updated and listing coordinators horizontally
Showing
3 changed files
with
26 additions
and
3 deletions
Show diff stats
amadeus/static/css/base/amadeus.css
... | ... | @@ -49,6 +49,10 @@ |
49 | 49 | font-size: 15px; |
50 | 50 | } |
51 | 51 | |
52 | +.category-panel-content{ | |
53 | + padding:10px; | |
54 | +} | |
55 | + | |
52 | 56 | /* category app ends */ |
53 | 57 | |
54 | 58 | .clearfix{ |
... | ... | @@ -103,8 +107,13 @@ |
103 | 107 | margin: 10% 10% 5% 5%; |
104 | 108 | } |
105 | 109 | .breadcrumb{ |
110 | + font-size: 16px; | |
106 | 111 | margin-bottom: 25px; |
107 | 112 | } |
113 | + | |
114 | +.breadcrumb > li > a{ | |
115 | + color: #26A69A; | |
116 | +} | |
108 | 117 | .courseHome{ |
109 | 118 | text-align: center; |
110 | 119 | } | ... | ... |
categories/templates/categories/category_card.html
categories/templates/categories/list.html
... | ... | @@ -80,15 +80,29 @@ |
80 | 80 | </div> |
81 | 81 | </div> |
82 | 82 | </div> |
83 | + | |
84 | + | |
85 | + {% if user.is_staff %} | |
86 | + <div id="{{category.slug}}" class="panel-collapse collapse category-panel-content"> | |
87 | + <h4> {% trans "Coordinator(s): " %} | |
88 | + {% for coordinator in category.coordinators.all %} | |
89 | + {{coordinator.username}} | |
90 | + {% endfor %} | |
91 | + </h4> | |
92 | + <p> {{category.description}}</p> | |
93 | + </div> | |
94 | + {% endif %} | |
83 | 95 | {% comment %} |
84 | 96 | |
85 | - | |
97 | + | |
86 | 98 | <div id="{{category.slug}}" class="panel-collapse collapse"> |
99 | + | |
87 | 100 | {% for subject in subjects %} |
88 | 101 | {% include "categories/category_card.html" %} |
89 | 102 | {% endfor %} |
90 | 103 | </div> |
91 | - {% endcomment %} | |
104 | + {% endcomment %} | |
105 | + | |
92 | 106 | </div> |
93 | 107 | </div> |
94 | 108 | {% endfor %} | ... | ... |