From dcc887ef2c1d9ee73603e589574fcde8385644c4 Mon Sep 17 00:00:00 2001 From: Ailson da Cruz Date: Sat, 10 Sep 2016 22:47:53 -0300 Subject: [PATCH] Adding breadcumbs to home templates #25 --- app/templates/home_app.html | 15 ++++++++------- app/templates/home_professor.html | 12 +++++++++--- app/templates/home_student.html | 24 +++++++++++++++--------- 3 files changed, 32 insertions(+), 19 deletions(-) diff --git a/app/templates/home_app.html b/app/templates/home_app.html index 8a2972b..f17b600 100644 --- a/app/templates/home_app.html +++ b/app/templates/home_app.html @@ -3,13 +3,14 @@ {% load i18n %} {% block breadcrumbs %} -
- -
+ + {% clear_breadcrumbs %} + {% breadcrumb 'Home' '/' %} + +{% endblock %} + +{% block render_breadcrumbs %} + {% render_breadcrumbs %} {% endblock %} {% block sidebar %} diff --git a/app/templates/home_professor.html b/app/templates/home_professor.html index 0ad65c0..1a6e8e7 100644 --- a/app/templates/home_professor.html +++ b/app/templates/home_professor.html @@ -1,11 +1,17 @@ {% extends 'base.html' %} {% load i18n %} +{% load django_bootstrap_breadcrumbs %} {% block breadcrumbs %} - + + {% clear_breadcrumbs %} + {% breadcrumb 'Home' '/' %} + +{% endblock %} + +{% block render_breadcrumbs %} + {% render_breadcrumbs %} {% endblock %} {% block sidebar %} diff --git a/app/templates/home_student.html b/app/templates/home_student.html index 53c7f31..4616a44 100644 --- a/app/templates/home_student.html +++ b/app/templates/home_student.html @@ -1,13 +1,20 @@ {% extends 'base.html' %} {% load i18n %} +{% load django_bootstrap_breadcrumbs %} {% block breadcrumbs %} - + + {% clear_breadcrumbs %} + {% breadcrumb 'Home' 'app:index' %} + +{% endblock %} + +{% block render_breadcrumbs %} + {% render_breadcrumbs %} {% endblock %} + {% block sidebar %}