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
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | {% block breadcrumbs %} | 16 | {% block breadcrumbs %} |
17 | 17 | ||
18 | {{ block.super }} | 18 | {{ block.super }} |
19 | - {% breadcrumb 'Course Detail' 'course:view' course.slug %} | 19 | + {% breadcrumb course 'course:view' course.slug %} |
20 | 20 | ||
21 | {% endblock %} | 21 | {% endblock %} |
22 | 22 |
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 | {% block content %} | 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 | {% block javascript %} | 5 | {% block javascript %} |
6 | <script type="text/javascript" src="{% static 'js/forum.js' %}"></script> | 6 | <script type="text/javascript" src="{% static 'js/forum.js' %}"></script> |
@@ -13,12 +13,8 @@ | @@ -13,12 +13,8 @@ | ||
13 | {% endblock %} | 13 | {% endblock %} |
14 | 14 | ||
15 | {% block breadcrumbs %} | 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 | {% endblock %} | 18 | {% endblock %} |
23 | 19 | ||
24 | {% block content %} | 20 | {% block content %} |
courses/templates/subject/replicate.html
1 | {% extends 'subject/index.html' %} | 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 | {% block content %} | 10 | {% block content %} |
6 | 11 |
courses/templates/subject/update.html
1 | {% extends 'subject/index.html' %} | 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 | {% block content %} | 10 | {% block content %} |
6 | 11 |