Commit 917ba34b021d0840eca35c00b88c5688fef518df
1 parent
d92f532f
Exists in
master
and in
3 other branches
Adjusting access subject color and adding subject number per category
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
subjects/templates/subjects/list.html
... | ... | @@ -54,7 +54,7 @@ |
54 | 54 | <div class="col-md-12 category-header"> |
55 | 55 | <h4 class="panel-title"> |
56 | 56 | <a class="category-course-link pull-left" data-parent="#accordion" data-toggle="collapse" href="#{{category.slug}}"> |
57 | - <button class="btn btn-default btn-xs text-center cat-selector"><i class="fa fa-angle-right fa-2x" aria-hidden="true"></i></button> {{category.name}} | |
57 | + <button class="btn btn-default btn-xs text-center cat-selector"><i class="fa fa-angle-right fa-2x" aria-hidden="true"></i></button> {{ category.name }} ({{ category.subject_category.count }}) | |
58 | 58 | </a> |
59 | 59 | </h4> |
60 | 60 | ... | ... |
subjects/templates/subjects/subject_card.html
... | ... | @@ -113,7 +113,7 @@ |
113 | 113 | {% if show_buttons %} |
114 | 114 | |
115 | 115 | {% if request.user in subject.students.all or request.user in subject.professor.all or request.user.is_staff or request.user in subject.category.coordinators.all %} |
116 | - <a href="{% url 'subjects:view' subject.slug %}" class="access-subject btn btn-primary btn-raised"> {% trans "Access Subject" %}</a> | |
116 | + <a href="{% url 'subjects:view' subject.slug %}" class="btn btn-success btn-raised"> {% trans "Access Subject" %}</a> | |
117 | 117 | {% else %} |
118 | 118 | <a href="#" class="subscribe-subject btn btn-primary btn-raised"> {% trans "Subscribe to Subject" %}</a> |
119 | 119 | {% endif %} | ... | ... |