Commit d55b9a441692eec3c0a8f8d6f0d22c14e784920c
1 parent
3571e6d3
Exists in
master
and in
5 other branches
Subject breadcrumbs #354
Showing
5 changed files
with
24 additions
and
13 deletions
Show diff stats
courses/templates/course/view.html
courses/templates/subject/create.html
1 | -{% extends 'subject/index.html' %} | |
1 | +{% extends 'course/view.html' %} | |
2 | 2 | |
3 | -{% load static i18n permission_tags widget_tweaks %} | |
3 | +{% load static i18n permission_tags widget_tweaks django_bootstrap_breadcrumbs %} | |
4 | + | |
5 | +{% block breadcrumbs %} | |
6 | + {{ block.super }} | |
7 | + {% breadcrumb 'Create subject' 'course:create_subject' %} | |
8 | +{% endblock breadcrumbs %} | |
4 | 9 | |
5 | 10 | {% block content %} |
6 | 11 | ... | ... |
courses/templates/subject/index.html
1 | -{% extends 'home.html' %} | |
1 | +{% extends 'course/view.html' %} | |
2 | 2 | |
3 | -{% load static i18n permission_tags professor_access %} | |
3 | +{% load static i18n permission_tags professor_access django_bootstrap_breadcrumbs %} | |
4 | 4 | |
5 | 5 | {% block javascript %} |
6 | 6 | <script type="text/javascript" src="{% static 'js/forum.js' %}"></script> |
... | ... | @@ -13,12 +13,8 @@ |
13 | 13 | {% endblock %} |
14 | 14 | |
15 | 15 | {% block breadcrumbs %} |
16 | - <ol class="breadcrumb"> | |
17 | - <li><a href="{% url 'app:index' %}">{% trans 'Home' %}</a></li> | |
18 | - <li><a href="{% url 'course:manage' %}">{% trans 'Courses' %}</a></li> | |
19 | - <li><a href="{% url 'course:view' course.slug %}">{{ course }}</a></li> | |
20 | - <li class="active">{{ subject }}</li> | |
21 | - </ol> | |
16 | + {{ block.super }} | |
17 | + {% breadcrumb subject 'course:view_subject' subject.slug %} | |
22 | 18 | {% endblock %} |
23 | 19 | |
24 | 20 | {% block content %} | ... | ... |
courses/templates/subject/replicate.html
1 | 1 | {% extends 'subject/index.html' %} |
2 | 2 | |
3 | -{% load static i18n permission_tags widget_tweaks %} | |
3 | +{% load static i18n permission_tags widget_tweaks django_bootstrap_breadcrumbs %} | |
4 | + | |
5 | +{% block breadcrumbs %} | |
6 | + {{ block.super }} | |
7 | + {% breadcrumb 'Replicate subject' 'course:replicate_subject' %} | |
8 | +{% endblock breadcrumbs %} | |
4 | 9 | |
5 | 10 | {% block content %} |
6 | 11 | ... | ... |
courses/templates/subject/update.html
1 | 1 | {% extends 'subject/index.html' %} |
2 | 2 | |
3 | -{% load static i18n permission_tags widget_tweaks %} | |
3 | +{% load static i18n permission_tags widget_tweaks django_bootstrap_breadcrumbs %} | |
4 | + | |
5 | +{% block breadcrumbs %} | |
6 | + {{ block.super }} | |
7 | + {% breadcrumb 'Update subject' 'course:update_subject' %} | |
8 | +{% endblock breadcrumbs %} | |
4 | 9 | |
5 | 10 | {% block content %} |
6 | 11 | ... | ... |