Commit 78758e1448e4b143060f95c3719b82218c70f849
1 parent
3ee9a1e6
Exists in
master
and in
5 other branches
Adding breadcrumbs to courses #25
Showing
3 changed files
with
13 additions
and
15 deletions
Show diff stats
app/templates/home_professor.html
courses/templates/course/index.html
1 | -{% extends 'app/base.html' %} | |
1 | +{% extends 'home_professor.html' %} | |
2 | 2 | |
3 | 3 | {% load static i18n permission_tags %} |
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 | - <li class="active">{% trans 'Manage Courses' %}</li> | |
9 | - </ol> | |
7 | + | |
8 | + {{ block.super }} | |
9 | + {% breadcrumb 'Courses' 'course:manage' %} | |
10 | + | |
10 | 11 | {% endblock %} |
11 | 12 | |
12 | 13 | {% block sidebar %} | ... | ... |
courses/templates/course/view.html
1 | -{% extends 'home_professor.html' %} | |
1 | +{% extends 'course/index.html' %} | |
2 | 2 | |
3 | 3 | {% load static i18n permission_tags %} |
4 | +{% load django_bootstrap_breadcrumbs %} | |
4 | 5 | |
5 | 6 | {% block breadcrumbs %} |
6 | - <div class="row"> | |
7 | - <div class="col-md-12"> | |
8 | - <ul class="breadcrumb"> | |
9 | - <li><a href="{% url 'app:index' %}">{% trans 'Home' %}</a></li> | |
10 | - <li class="active">{{ course }}</li> | |
11 | - </ul> | |
12 | - </div> | |
13 | - </div> | |
7 | + | |
8 | + {{ block.super }} | |
9 | + {% breadcrumb 'Course detail' 'course:view' %} | |
10 | + | |
14 | 11 | {% endblock %} |
15 | 12 | |
16 | 13 | ... | ... |