manager: redo <title> to be "page name | global name" (#73381)
gitea-wip/chrono/pipeline/pr-main This commit looks good Details

This commit is contained in:
Frédéric Péters 2023-01-08 14:46:53 +01:00
parent 0aba86efcf
commit 885e4e295c
2 changed files with 2 additions and 9 deletions

View File

@ -1,9 +1,7 @@
{% extends "chrono/manager_home.html" %}
{% load i18n %}
{% block page-title-extra-label %}
- {% firstof agenda.label object.label %}
{% endblock %}
{% block page-title-extra-label %}{% firstof agenda.label object.label %}{% endblock %}
{% block appbar %}
<h2>{{ object.label }}</h2>

View File

@ -6,12 +6,7 @@
<script src="{% static 'js/chrono.manager.js' %}"></script>
{% endblock %}
{% block page-title %}
{% trans 'Agendas' as default_site_title %}
{% firstof site_title default_site_title %}
{% block page-title-extra-label %}
{% endblock %}
{% endblock %}
{% block page-title %}{% block page-title-extra-label %}{% trans 'Agendas' %}{% endblock %} | {% trans 'Agendas' as default_site_title %}{% firstof global_title default_site_title %}{% endblock %}
{% block site-title %}
{% trans 'Agendas' as default_site_title %}
{% firstof site_title default_site_title %}