From 292e9f6cd309411faac8db2cf87193e7dc6a9f58 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Tue, 12 Jul 2016 16:35:18 +0200 Subject: [PATCH] breadcrumb and title fix on management page (#12540) --- corbo/templates/corbo/base.html | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/corbo/templates/corbo/base.html b/corbo/templates/corbo/base.html index e691a7f..98e1b5e 100644 --- a/corbo/templates/corbo/base.html +++ b/corbo/templates/corbo/base.html @@ -1,6 +1,14 @@ {% extends "gadjo/base.html" %} {% load i18n static %} -{% block page-title %}{% trans "Corbo" %}{% endblock %} +{% block page-title %} + {% trans 'Corbo' as default_site_title %} + {% firstof site_title default_site_title %} +{% endblock %} + +{% block site-title %} + {% trans 'Announces' as default_site_title %} + {% firstof site_title default_site_title %} +{% endblock %} {% block css %} @@ -17,13 +25,12 @@ {% url "auth_logout" %} {% endblock %} -{% block site-title %} {% trans "Announces" %}{% endblock %} +{% block homepage-url %}{{portal_agent_url}}{% endblock %} +{% block homepage-title %}{{portal_agent_title}}{% endblock %} -{% block more-user-links %} - {{ block.super }} - {% if user.is_authenticated and user.is_superuser %} - {% trans "Management" %} - {% endif %} +{% block breadcrumb %} + {% if portal_agent_url %}{{ block.super }}{% endif %} + {% trans "Announces" %} {% endblock %} {% block content %} -- 2.8.1