Commit dcc887ef2c1d9ee73603e589574fcde8385644c4
1 parent
18cd433b
Exists in
master
and in
5 other branches
Adding breadcumbs to home templates #25
Showing
3 changed files
with
32 additions
and
19 deletions
Show diff stats
app/templates/home_app.html
... | ... | @@ -3,13 +3,14 @@ |
3 | 3 | {% load i18n %} |
4 | 4 | |
5 | 5 | {% block breadcrumbs %} |
6 | - <div class="row"> | |
7 | - <div class="col-md-12"> | |
8 | - <ul class="breadcrumb" style="margin-bottom: 5px;"> | |
9 | - <li><a href="{% url 'core:index' %}">{% trans 'Home' %}</a></li> | |
10 | - </ul> | |
11 | - </div> | |
12 | - </div> | |
6 | + | |
7 | + {% clear_breadcrumbs %} | |
8 | + {% breadcrumb 'Home' '/' %} | |
9 | + | |
10 | +{% endblock %} | |
11 | + | |
12 | +{% block render_breadcrumbs %} | |
13 | + {% render_breadcrumbs %} | |
13 | 14 | {% endblock %} |
14 | 15 | |
15 | 16 | {% block sidebar %} | ... | ... |
app/templates/home_professor.html
1 | 1 | {% extends 'base.html' %} |
2 | 2 | |
3 | 3 | {% load i18n %} |
4 | +{% load django_bootstrap_breadcrumbs %} | |
4 | 5 | |
5 | 6 | {% block breadcrumbs %} |
6 | - <ol class="breadcrumb"> | |
7 | - <li><a href="{% url 'app:index' %}">{% trans 'Home' %}</a></li> | |
8 | - </ol> | |
7 | + | |
8 | + {% clear_breadcrumbs %} | |
9 | + {% breadcrumb 'Home' '/' %} | |
10 | + | |
11 | +{% endblock %} | |
12 | + | |
13 | +{% block render_breadcrumbs %} | |
14 | + {% render_breadcrumbs %} | |
9 | 15 | {% endblock %} |
10 | 16 | |
11 | 17 | {% block sidebar %} | ... | ... |
app/templates/home_student.html
1 | 1 | {% extends 'base.html' %} |
2 | 2 | |
3 | 3 | {% load i18n %} |
4 | +{% load django_bootstrap_breadcrumbs %} | |
4 | 5 | |
5 | 6 | {% block breadcrumbs %} |
6 | - <ol class="breadcrumb"> | |
7 | - <li><a href="{% url 'app:index' %}">{% trans 'Home' %}</a></li> | |
8 | - </ol> | |
7 | + | |
8 | + {% clear_breadcrumbs %} | |
9 | + {% breadcrumb 'Home' 'app:index' %} | |
10 | + | |
11 | +{% endblock %} | |
12 | + | |
13 | +{% block render_breadcrumbs %} | |
14 | + {% render_breadcrumbs %} | |
9 | 15 | {% endblock %} |
10 | 16 | |
17 | + | |
11 | 18 | {% block sidebar %} |
12 | 19 | <div class="panel panel-primary navigation"> |
13 | 20 | <div class="panel-heading"> |
... | ... | @@ -24,7 +31,6 @@ |
24 | 31 | {% endblock %} |
25 | 32 | |
26 | 33 | {% block content %} |
27 | - | |
28 | 34 | <h3>{% trans 'Notifications' %}</h3> |
29 | 35 | {% if messages %} |
30 | 36 | {% for message in messages %} |
... | ... | @@ -64,9 +70,9 @@ |
64 | 70 | |
65 | 71 | {% block rightbar %} |
66 | 72 | <div class="well well-lg goal"> |
67 | - {% trans 'Goals' %} | |
68 | - </div> | |
69 | - <div class="well well-lg favorites"> | |
70 | - {% trans 'Favorites' %} | |
71 | - </div> | |
73 | + {% trans 'Goals' %} | |
74 | + </div> | |
75 | + <div class="well well-lg favorites"> | |
76 | + {% trans 'Favorites' %} | |
77 | + </div> | |
72 | 78 | {% endblock rightbar %} | ... | ... |