From 78758e1448e4b143060f95c3719b82218c70f849 Mon Sep 17 00:00:00 2001 From: Ailson da Cruz Date: Sat, 10 Sep 2016 23:44:15 -0300 Subject: [PATCH] Adding breadcrumbs to courses #25 --- app/templates/home_professor.html | 2 +- courses/templates/course/index.html | 11 ++++++----- courses/templates/course/view.html | 15 ++++++--------- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/app/templates/home_professor.html b/app/templates/home_professor.html index 1a6e8e7..265de29 100644 --- a/app/templates/home_professor.html +++ b/app/templates/home_professor.html @@ -6,7 +6,7 @@ {% block breadcrumbs %} {% clear_breadcrumbs %} - {% breadcrumb 'Home' '/' %} + {% breadcrumb 'Home' 'app:index' %} {% endblock %} diff --git a/courses/templates/course/index.html b/courses/templates/course/index.html index ded9f7b..a160744 100644 --- a/courses/templates/course/index.html +++ b/courses/templates/course/index.html @@ -1,12 +1,13 @@ -{% extends 'app/base.html' %} +{% extends 'home_professor.html' %} {% load static i18n permission_tags %} +{% load django_bootstrap_breadcrumbs %} {% block breadcrumbs %} - + + {{ block.super }} + {% breadcrumb 'Courses' 'course:manage' %} + {% endblock %} {% block sidebar %} diff --git a/courses/templates/course/view.html b/courses/templates/course/view.html index 4a97d8f..da86519 100644 --- a/courses/templates/course/view.html +++ b/courses/templates/course/view.html @@ -1,16 +1,13 @@ -{% extends 'home_professor.html' %} +{% extends 'course/index.html' %} {% load static i18n permission_tags %} +{% load django_bootstrap_breadcrumbs %} {% block breadcrumbs %} -
-
- -
-
+ + {{ block.super }} + {% breadcrumb 'Course detail' 'course:view' %} + {% endblock %} -- libgit2 0.21.2