Commit 2c97eaeecad56685f3a5153f8fc81a42c8cabc73
1 parent
8043540f
Exists in
master
and in
5 other branches
modifying home professor #205
Showing
1 changed file
with
18 additions
and
23 deletions
Show diff stats
app/templates/home_professor.html
1 | 1 | {% extends 'base.html' %} |
2 | 2 | |
3 | 3 | {% load i18n %} |
4 | -{% load static i18n permission_tags %} | |
5 | 4 | {% load django_bootstrap_breadcrumbs %} |
6 | 5 | |
7 | 6 | {% block breadcrumbs %} |
... | ... | @@ -16,30 +15,26 @@ |
16 | 15 | {% endblock %} |
17 | 16 | |
18 | 17 | {% block sidebar %} |
19 | - {% if user|has_role:'professor' %} | |
20 | - <div class="panel panel-primary navigation"> | |
21 | - <div class="panel-heading"> | |
22 | - <h5>{% trans 'Menu' %}</h5> | |
23 | - </div> | |
24 | - <div class="panel-body"> | |
25 | - <ul class="nav nav-pills nav-stacked"> | |
26 | - <li><a href="{% url 'course:create' %}">{% trans 'Create Course' %}</a></li> | |
27 | - <li><a href="{% url 'course:manage' %}">{% trans 'Manage Course' %}</a></li> | |
28 | - </ul> | |
29 | - </div> | |
18 | + <div class="panel panel-primary"> | |
19 | + <div class="panel-heading"> | |
20 | + <h5>{% trans 'Menu' %}</h5> | |
30 | 21 | </div> |
31 | - {% else %} | |
32 | - {{block.super}} | |
33 | - {% endif %} | |
34 | - | |
22 | + <div class="panel-body"> | |
23 | + <ul class="nav nav-pills nav-stacked"> | |
24 | + <li><a href="javascript:void(0)">{% trans 'Pending tasks' %}</a></li> | |
25 | + <li><a href="{% url 'course:create' %}">{% trans 'Create Course' %}</a></li> | |
26 | + <li><a href="{% url 'course:manage' %}">{% trans 'Manage Course' %}</a></li> | |
27 | + </ul> | |
28 | + </div> | |
29 | + </div> | |
35 | 30 | {% endblock %} |
36 | 31 | |
37 | 32 | {% block content %} |
38 | 33 | |
39 | 34 | <h3>{% trans 'Courses' %}</h3> |
40 | - {% if courses|length > 0 %} | |
41 | - {% for course in courses %} | |
42 | - <a href="{% url 'course:view' course.slug %}"> | |
35 | + {% if courses|length > 0 %} | |
36 | + {% for course in courses %} | |
37 | + <a href="{% url 'course:view' course.slug %}"> | |
43 | 38 | <div class="panel panel-default courseHome"> |
44 | 39 | <div class="panel-body"> |
45 | 40 | <p>{{ course }}</p> |
... | ... | @@ -53,9 +48,9 @@ |
53 | 48 | </div> |
54 | 49 | </div> |
55 | 50 | </a> |
56 | - {% endfor %} | |
57 | - {% else %} | |
58 | - <p>{% trans "You didn't create any course yet." %}</p> | |
59 | - {% endif %} | |
51 | + {% endfor %} | |
52 | + {% else %} | |
53 | + <p>{% trans "You didn't create any course yet." %}</p> | |
54 | + {% endif %} | |
60 | 55 | {% endblock %} |
61 | 56 | ... | ... |