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,6 +73,7 @@ | ||
73 | {% if user|has_role:'student' or not user.is_staff %} | 73 | {% if user|has_role:'student' or not user.is_staff %} |
74 | <li><a href="{% url 'course:manage' %}">{% trans 'My courses' %}</a></li> | 74 | <li><a href="{% url 'course:manage' %}">{% trans 'My courses' %}</a></li> |
75 | {% endif %} | 75 | {% endif %} |
76 | + <li><a href="{% url 'core:guest' %}">{% trans 'All Courses' %}</a></li> | ||
76 | {% if user|has_role:'system_admin' %} | 77 | {% if user|has_role:'system_admin' %} |
77 | <li> <a href="{% url 'users:manage' %}">{% trans 'Manage Users' %}</a></li> | 78 | <li> <a href="{% url 'users:manage' %}">{% trans 'Manage Users' %}</a></li> |
78 | {% endif %} | 79 | {% endif %} |
app/templates/home_student.html
@@ -24,6 +24,7 @@ | @@ -24,6 +24,7 @@ | ||
24 | <ul class="nav nav-pills nav-stacked"> | 24 | <ul class="nav nav-pills nav-stacked"> |
25 | <li><a href="{% url 'users:profile' %}">{% trans 'Profile' %}</a></li> | 25 | <li><a href="{% url 'users:profile' %}">{% trans 'Profile' %}</a></li> |
26 | <li><a href="{% url 'course:manage' %}">{% trans 'My Courses' %}</a></li> | 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 | <li><a href="javascript:void(0)">{% trans 'Google accounts' %}</a></li> | 28 | <li><a href="javascript:void(0)">{% trans 'Google accounts' %}</a></li> |
28 | </ul> | 29 | </ul> |
29 | </div> | 30 | </div> |
core/templates/guest.html
@@ -98,7 +98,7 @@ | @@ -98,7 +98,7 @@ | ||
98 | <li><a href="{% url 'core:register' %}">{% trans 'Register' %}</a></li> | 98 | <li><a href="{% url 'core:register' %}">{% trans 'Register' %}</a></li> |
99 | </ul> | 99 | </ul> |
100 | </div> | 100 | </div> |
101 | - </div> | 101 | + </div> |
102 | {% endblock %} | 102 | {% endblock %} |
103 | 103 | ||
104 | </div> | 104 | </div> |
courses/templates/course/index.html
@@ -21,6 +21,7 @@ | @@ -21,6 +21,7 @@ | ||
21 | <li><a href="{% url 'users:profile' %}">{% trans 'Profile' %}</a></li> | 21 | <li><a href="{% url 'users:profile' %}">{% trans 'Profile' %}</a></li> |
22 | {% if user|has_role:'student' or not user.is_staff %} | 22 | {% if user|has_role:'student' or not user.is_staff %} |
23 | <li><a href="{% url 'course:manage' %}">{% trans 'My courses' %}</a></li> | 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 | {% endif %} | 25 | {% endif %} |
25 | {% if user|has_role:'system_admin' %} | 26 | {% if user|has_role:'system_admin' %} |
26 | <li> <a href="{% url 'users:manage' %}">{% trans 'Manage Users' %}</a></li> | 27 | <li> <a href="{% url 'users:manage' %}">{% trans 'Manage Users' %}</a></li> |
courses/templates/course/view.html
@@ -28,6 +28,7 @@ | @@ -28,6 +28,7 @@ | ||
28 | <li><a href="{% url 'core:home' %}">{% trans "Home" %}</a></li> | 28 | <li><a href="{% url 'core:home' %}">{% trans "Home" %}</a></li> |
29 | <li><a href="{% url 'users:profile' %}">{% trans 'Profile' %}</a></li> | 29 | <li><a href="{% url 'users:profile' %}">{% trans 'Profile' %}</a></li> |
30 | <li><a href="{% url 'course:manage' %}">{% trans 'My Courses' %}</a></li> | 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 | </ul> | 32 | </ul> |
32 | </div> | 33 | </div> |
33 | </div> | 34 | </div> |
@@ -91,7 +92,7 @@ | @@ -91,7 +92,7 @@ | ||
91 | </div> | 92 | </div> |
92 | </div> | 93 | </div> |
93 | <div class="btn-group btn-group-justified btn-group-raised"> | 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 | {% for category_subject in categorys_subjects %} | 96 | {% for category_subject in categorys_subjects %} |
96 | <a href="?category={{category_subject.name}}" class="btn btn-raised btn-primary">{{category_subject.name}}</a> | 97 | <a href="?category={{category_subject.name}}" class="btn btn-raised btn-primary">{{category_subject.name}}</a> |
97 | {% endfor %} | 98 | {% endfor %} |