Commit 13cfde3d1820fb3b217afc247e7330fd57314cd4
1 parent
c755e562
Exists in
master
and in
3 other branches
modified breadcrubms and removed options from admin user
Showing
2 changed files
with
13 additions
and
7 deletions
Show diff stats
categories/templates/categories/list.html
@@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
9 | 9 | ||
10 | {% block breadcrumbs %} | 10 | {% block breadcrumbs %} |
11 | {{ block.super }} | 11 | {{ block.super }} |
12 | - {% breadcrumb 'Categories' 'categories:index' %} | 12 | + {% breadcrumb "Manage Categories" 'categories:index' %} |
13 | {% endblock %} | 13 | {% endblock %} |
14 | 14 | ||
15 | {% block content %} | 15 | {% block content %} |
@@ -25,12 +25,15 @@ | @@ -25,12 +25,15 @@ | ||
25 | <a href="{% url 'categories:create' %}"><button id="create-category"> {% trans "Create Category" %}</button></a> | 25 | <a href="{% url 'categories:create' %}"><button id="create-category"> {% trans "Create Category" %}</button></a> |
26 | {% endif %} | 26 | {% endif %} |
27 | 27 | ||
28 | - <div id="core-subjects-options-div"> | ||
29 | - <ul class="core-subjects-options"> | ||
30 | - <li class="active">{% trans "My subjects" %}</li> | ||
31 | - <li>{% trans "all subjects" %}</li> | ||
32 | - </ul> | ||
33 | - </div> | 28 | + {% if not user.is_staff %} |
29 | + <div id="core-subjects-options-div"> | ||
30 | + <ul class="core-subjects-options"> | ||
31 | + <li class="active">{% trans "My subjects" %}</li> | ||
32 | + <li>{% trans "all subjects" %}</li> | ||
33 | + </ul> | ||
34 | + </div> | ||
35 | + {% endif %} | ||
36 | + | ||
34 | 37 | ||
35 | <!-- Code for listing categories --> | 38 | <!-- Code for listing categories --> |
36 | <div class="col-md-12 cards-content"> | 39 | <div class="col-md-12 cards-content"> |