From d55b9a441692eec3c0a8f8d6f0d22c14e784920c Mon Sep 17 00:00:00 2001 From: ailsoncgt Date: Mon, 21 Nov 2016 11:58:43 -0300 Subject: [PATCH] Subject breadcrumbs #354 --- courses/templates/course/view.html | 2 +- courses/templates/subject/create.html | 9 +++++++-- courses/templates/subject/index.html | 12 ++++-------- courses/templates/subject/replicate.html | 7 ++++++- courses/templates/subject/update.html | 7 ++++++- 5 files changed, 24 insertions(+), 13 deletions(-) diff --git a/courses/templates/course/view.html b/courses/templates/course/view.html index 10484a8..7eb0333 100644 --- a/courses/templates/course/view.html +++ b/courses/templates/course/view.html @@ -16,7 +16,7 @@ {% block breadcrumbs %} {{ block.super }} - {% breadcrumb 'Course Detail' 'course:view' course.slug %} + {% breadcrumb course 'course:view' course.slug %} {% endblock %} diff --git a/courses/templates/subject/create.html b/courses/templates/subject/create.html index ab07989..6b4e9b8 100644 --- a/courses/templates/subject/create.html +++ b/courses/templates/subject/create.html @@ -1,6 +1,11 @@ -{% extends 'subject/index.html' %} +{% extends 'course/view.html' %} -{% load static i18n permission_tags widget_tweaks %} +{% load static i18n permission_tags widget_tweaks django_bootstrap_breadcrumbs %} + +{% block breadcrumbs %} + {{ block.super }} + {% breadcrumb 'Create subject' 'course:create_subject' %} +{% endblock breadcrumbs %} {% block content %} diff --git a/courses/templates/subject/index.html b/courses/templates/subject/index.html index 7a4034f..f039fc7 100644 --- a/courses/templates/subject/index.html +++ b/courses/templates/subject/index.html @@ -1,6 +1,6 @@ -{% extends 'home.html' %} +{% extends 'course/view.html' %} -{% load static i18n permission_tags professor_access %} +{% load static i18n permission_tags professor_access django_bootstrap_breadcrumbs %} {% block javascript %} @@ -13,12 +13,8 @@ {% endblock %} {% block breadcrumbs %} - + {{ block.super }} + {% breadcrumb subject 'course:view_subject' subject.slug %} {% endblock %} {% block content %} diff --git a/courses/templates/subject/replicate.html b/courses/templates/subject/replicate.html index e0f36f7..6dd5233 100644 --- a/courses/templates/subject/replicate.html +++ b/courses/templates/subject/replicate.html @@ -1,6 +1,11 @@ {% extends 'subject/index.html' %} -{% load static i18n permission_tags widget_tweaks %} +{% load static i18n permission_tags widget_tweaks django_bootstrap_breadcrumbs %} + +{% block breadcrumbs %} + {{ block.super }} + {% breadcrumb 'Replicate subject' 'course:replicate_subject' %} +{% endblock breadcrumbs %} {% block content %} diff --git a/courses/templates/subject/update.html b/courses/templates/subject/update.html index 4862d0a..9d7ce83 100644 --- a/courses/templates/subject/update.html +++ b/courses/templates/subject/update.html @@ -1,6 +1,11 @@ {% extends 'subject/index.html' %} -{% load static i18n permission_tags widget_tweaks %} +{% load static i18n permission_tags widget_tweaks django_bootstrap_breadcrumbs %} + +{% block breadcrumbs %} + {{ block.super }} + {% breadcrumb 'Update subject' 'course:update_subject' %} +{% endblock breadcrumbs %} {% block content %} -- libgit2 0.21.2