Commit f60ad1101524ebbfa417b5b5c7aeaa8148c78b91
1 parent
857cc608
Exists in
master
and in
5 other branches
Course and category breadcrumbs #353
Showing
5 changed files
with
27 additions
and
29 deletions
Show diff stats
courses/templates/category/index.html
1 | 1 | {% extends 'home.html' %} |
2 | 2 | |
3 | 3 | {% load static i18n %} |
4 | -{% load static i18n permission_tags %} | |
4 | +{% load static i18n permission_tags django_bootstrap_breadcrumbs %} | |
5 | 5 | {% load widget_tweaks %} |
6 | 6 | |
7 | 7 | {% block breadcrumbs %} |
8 | - <ol class="breadcrumb"> | |
9 | - <li><a href="{% url 'app:index' %}">{% trans 'Home' %}</a></li> | |
10 | - <li class="active">{% trans 'Manage Categories' %}</li> | |
11 | - </ol> | |
8 | + | |
9 | + {{ block.super }} | |
10 | + {% breadcrumb 'Manage Categories' 'course:manage_cat' %} | |
11 | + | |
12 | 12 | {% endblock %} |
13 | 13 | |
14 | 14 | {% block content %} | ... | ... |
courses/templates/category/update.html
1 | -{% extends 'home.html' %} | |
1 | +{% extends 'category/index.html' %} | |
2 | 2 | |
3 | 3 | {% load static i18n %} |
4 | -{% load static i18n permission_tags %} | |
4 | +{% load static i18n permission_tags django_bootstrap_breadcrumbs %} | |
5 | 5 | {% load widget_tweaks %} |
6 | 6 | |
7 | 7 | {% block breadcrumbs %} |
8 | - <ol class="breadcrumb"> | |
9 | - <li><a href="{% url 'app:index' %}">{% trans 'Home' %}</a></li> | |
10 | - <li class="active">{% trans 'Edit Category' %}</li> | |
11 | - </ol> | |
8 | + | |
9 | + {{ block.super }} | |
10 | + {% breadcrumb 'Update Categories' 'course:update_cat' %} | |
11 | + | |
12 | 12 | {% endblock %} |
13 | 13 | |
14 | 14 | {% block content %} | ... | ... |
courses/templates/course/create.html
1 | -{% extends 'home.html' %} | |
1 | +{% extends 'course/index.html' %} | |
2 | 2 | |
3 | -{% load static i18n %} | |
4 | -{% load widget_tweaks %} | |
3 | +{% load widget_tweaks static i18n permission_tags django_bootstrap_breadcrumbs %} | |
5 | 4 | |
6 | 5 | {% block breadcrumbs %} |
7 | - <ol class="breadcrumb"> | |
8 | - <li><a href="{% url 'app:index' %}">{% trans 'Home' %}</a></li> | |
9 | - <li class="active">{% trans 'Create Course' %}</li> | |
10 | - </ol> | |
6 | + | |
7 | + {{ block.super }} | |
8 | + {% breadcrumb 'Create Course' 'course:create' %} | |
9 | + | |
11 | 10 | {% endblock %} |
12 | 11 | |
13 | 12 | {% block content %} | ... | ... |
courses/templates/course/replicate.html
1 | 1 | {% extends 'course/view.html' %} |
2 | 2 | |
3 | 3 | {% load static i18n %} |
4 | -{% load widget_tweaks course_value_field %} | |
4 | +{% load widget_tweaks course_value_field django_bootstrap_breadcrumbs %} | |
5 | 5 | |
6 | 6 | {% block breadcrumbs %} |
7 | -<ol class="breadcrumb"> | |
8 | - <li><a href="{% url 'app:index' %}">{% trans 'Home' %}</a></li> | |
9 | - <li class="active">{% trans 'Replicate Course' %}</li> | |
10 | -</ol> | |
7 | + | |
8 | + {{ block.super }} | |
9 | + {% breadcrumb 'Replicate Course' 'course:replicate_course' %} | |
10 | + | |
11 | 11 | {% endblock %} |
12 | 12 | |
13 | 13 | {% block content %} | ... | ... |
courses/templates/course/view.html
1 | -{% extends 'home.html' %} | |
1 | +{% extends 'course/index.html' %} | |
2 | 2 | |
3 | 3 | {% load static i18n permission_tags custom_filters %} |
4 | 4 | {% load django_bootstrap_breadcrumbs %} |
... | ... | @@ -14,11 +14,10 @@ |
14 | 14 | {% endblock %} |
15 | 15 | |
16 | 16 | {% block breadcrumbs %} |
17 | - <ol class="breadcrumb"> | |
18 | - <li><a href="{% url 'app:index' %}">{% trans 'Home' %}</a></li> | |
19 | - <li><a href="{% url 'course:manage' %}">{% trans 'Courses' %}</a></li> | |
20 | - <li><a href="{% url 'course:view' course.slug %}">{{ course }}</a></li> | |
21 | - </ol> | |
17 | + | |
18 | + {{ block.super }} | |
19 | + {% breadcrumb 'Course Detail' 'course:view' course.slug %} | |
20 | + | |
22 | 21 | {% endblock %} |
23 | 22 | |
24 | 23 | {% block content %} | ... | ... |