From f60ad1101524ebbfa417b5b5c7aeaa8148c78b91 Mon Sep 17 00:00:00 2001 From: ailsoncgt Date: Mon, 21 Nov 2016 11:02:04 -0300 Subject: [PATCH] Course and category breadcrumbs #353 --- courses/templates/category/index.html | 10 +++++----- courses/templates/category/update.html | 12 ++++++------ courses/templates/course/create.html | 13 ++++++------- courses/templates/course/replicate.html | 10 +++++----- courses/templates/course/view.html | 11 +++++------ 5 files changed, 27 insertions(+), 29 deletions(-) diff --git a/courses/templates/category/index.html b/courses/templates/category/index.html index 89ee024..56e7ee1 100644 --- a/courses/templates/category/index.html +++ b/courses/templates/category/index.html @@ -1,14 +1,14 @@ {% extends 'home.html' %} {% load static i18n %} -{% load static i18n permission_tags %} +{% load static i18n permission_tags django_bootstrap_breadcrumbs %} {% load widget_tweaks %} {% block breadcrumbs %} - + + {{ block.super }} + {% breadcrumb 'Manage Categories' 'course:manage_cat' %} + {% endblock %} {% block content %} diff --git a/courses/templates/category/update.html b/courses/templates/category/update.html index 3f9dbcc..5ac8853 100644 --- a/courses/templates/category/update.html +++ b/courses/templates/category/update.html @@ -1,14 +1,14 @@ -{% extends 'home.html' %} +{% extends 'category/index.html' %} {% load static i18n %} -{% load static i18n permission_tags %} +{% load static i18n permission_tags django_bootstrap_breadcrumbs %} {% load widget_tweaks %} {% block breadcrumbs %} - + + {{ block.super }} + {% breadcrumb 'Update Categories' 'course:update_cat' %} + {% endblock %} {% block content %} diff --git a/courses/templates/course/create.html b/courses/templates/course/create.html index a0a2b85..ca4d38c 100644 --- a/courses/templates/course/create.html +++ b/courses/templates/course/create.html @@ -1,13 +1,12 @@ -{% extends 'home.html' %} +{% extends 'course/index.html' %} -{% load static i18n %} -{% load widget_tweaks %} +{% load widget_tweaks static i18n permission_tags django_bootstrap_breadcrumbs %} {% block breadcrumbs %} - + + {{ block.super }} + {% breadcrumb 'Create Course' 'course:create' %} + {% endblock %} {% block content %} diff --git a/courses/templates/course/replicate.html b/courses/templates/course/replicate.html index 5f2437c..77b865d 100644 --- a/courses/templates/course/replicate.html +++ b/courses/templates/course/replicate.html @@ -1,13 +1,13 @@ {% extends 'course/view.html' %} {% load static i18n %} -{% load widget_tweaks course_value_field %} +{% load widget_tweaks course_value_field django_bootstrap_breadcrumbs %} {% block breadcrumbs %} - + + {{ block.super }} + {% breadcrumb 'Replicate Course' 'course:replicate_course' %} + {% endblock %} {% block content %} diff --git a/courses/templates/course/view.html b/courses/templates/course/view.html index 188a0e1..10484a8 100644 --- a/courses/templates/course/view.html +++ b/courses/templates/course/view.html @@ -1,4 +1,4 @@ -{% extends 'home.html' %} +{% extends 'course/index.html' %} {% load static i18n permission_tags custom_filters %} {% load django_bootstrap_breadcrumbs %} @@ -14,11 +14,10 @@ {% endblock %} {% block breadcrumbs %} - + + {{ block.super }} + {% breadcrumb 'Course Detail' 'course:view' course.slug %} + {% endblock %} {% block content %} -- libgit2 0.21.2