From 7fc8a4a6dc3162b693c969c9af9b5552282a33ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 31 Mar 2016 12:53:19 +0200 Subject: [PATCH] misc: use portal agent as first item of breadcrumb --- welco/templates/welco/base.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/welco/templates/welco/base.html b/welco/templates/welco/base.html index 2d3fae3..52eab82 100644 --- a/welco/templates/welco/base.html +++ b/welco/templates/welco/base.html @@ -1,10 +1,20 @@ {% extends "gadjo/base.html" %} -{% load static django_select2_tags %} +{% load i18n static django_select2_tags %} {% block page-title %}{% firstof site_title "Welco" %}{% endblock %} {% block site-title %}{% firstof site_title "Welco" %}{% endblock %} {% block logout-url %}{% url 'auth_logout' %}{% endblock %} +{% block homepage-url %} + {% url 'home' as default_homepage_url %} + {% firstof manager_homepage_url default_homepage_url %} +{% endblock %} + +{% block homepage-title %} + {% trans 'Home' as default_homepage_title %} + {% firstof manager_homepage_title default_homepage_title %} +{% endblock %} + {% block extrascripts %} {{ block.super }}