Commit 47ee8b1c53237db68693f90da3bebdf2ff42c449
1 parent
4380a034
Exists in
master
and in
5 other branches
Adding button All courses on menu home [Issue #191]
Showing
5 changed files
with
6 additions
and
2 deletions
Show diff stats
app/templates/home.html
... | ... | @@ -73,6 +73,7 @@ |
73 | 73 | {% if user|has_role:'student' or not user.is_staff %} |
74 | 74 | <li><a href="{% url 'course:manage' %}">{% trans 'My courses' %}</a></li> |
75 | 75 | {% endif %} |
76 | + <li><a href="{% url 'core:guest' %}">{% trans 'All Courses' %}</a></li> | |
76 | 77 | {% if user|has_role:'system_admin' %} |
77 | 78 | <li> <a href="{% url 'users:manage' %}">{% trans 'Manage Users' %}</a></li> |
78 | 79 | {% endif %} | ... | ... |
app/templates/home_student.html
... | ... | @@ -24,6 +24,7 @@ |
24 | 24 | <ul class="nav nav-pills nav-stacked"> |
25 | 25 | <li><a href="{% url 'users:profile' %}">{% trans 'Profile' %}</a></li> |
26 | 26 | <li><a href="{% url 'course:manage' %}">{% trans 'My Courses' %}</a></li> |
27 | + <li><a href="{% url 'core:guest' %}">{% trans 'All Courses' %}</a></li> | |
27 | 28 | <li><a href="javascript:void(0)">{% trans 'Google accounts' %}</a></li> |
28 | 29 | </ul> |
29 | 30 | </div> | ... | ... |
core/templates/guest.html
courses/templates/course/index.html
... | ... | @@ -21,6 +21,7 @@ |
21 | 21 | <li><a href="{% url 'users:profile' %}">{% trans 'Profile' %}</a></li> |
22 | 22 | {% if user|has_role:'student' or not user.is_staff %} |
23 | 23 | <li><a href="{% url 'course:manage' %}">{% trans 'My courses' %}</a></li> |
24 | + <li><a href="{% url 'core:guest' %}">{% trans 'All Courses' %}</a></li> | |
24 | 25 | {% endif %} |
25 | 26 | {% if user|has_role:'system_admin' %} |
26 | 27 | <li> <a href="{% url 'users:manage' %}">{% trans 'Manage Users' %}</a></li> | ... | ... |
courses/templates/course/view.html
... | ... | @@ -28,6 +28,7 @@ |
28 | 28 | <li><a href="{% url 'core:home' %}">{% trans "Home" %}</a></li> |
29 | 29 | <li><a href="{% url 'users:profile' %}">{% trans 'Profile' %}</a></li> |
30 | 30 | <li><a href="{% url 'course:manage' %}">{% trans 'My Courses' %}</a></li> |
31 | + <li><a href="{% url 'core:guest' %}">{% trans 'All Courses' %}</a></li> | |
31 | 32 | </ul> |
32 | 33 | </div> |
33 | 34 | </div> |
... | ... | @@ -91,7 +92,7 @@ |
91 | 92 | </div> |
92 | 93 | </div> |
93 | 94 | <div class="btn-group btn-group-justified btn-group-raised"> |
94 | - <a href="?category=all" class="btn btn-raised btn-info">Todos</a> | |
95 | + <a href="{% url 'course:manage' %}" class="btn btn-raised btn-info">Todos</a> | |
95 | 96 | {% for category_subject in categorys_subjects %} |
96 | 97 | <a href="?category={{category_subject.name}}" class="btn btn-raised btn-primary">{{category_subject.name}}</a> |
97 | 98 | {% endfor %} | ... | ... |