manager: redo <title> to be "page name | global name" (#73382)

This commit is contained in:
Frédéric Péters 2023-01-08 15:07:58 +01:00
parent c95de4aa19
commit 888292f78c
23 changed files with 23 additions and 27 deletions

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/base.html" %}
{% load i18n %}
{% block page-title %}{{ block.super }} - {% if object %}{{ object }}{% else %}{% trans "Authenticators" %}{% endif %}{% endblock %}
{% block page-title %}{% if object %}{{ object }}{% else %}{% trans "Authenticators" %}{% endif %} | {{ block.super }}{% endblock %}
{% block title %}{{ block.super }} - {% trans "Authenticators" %}{% endblock %}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/base.html" %}
{% load i18n %}
{% block page-title %}{{ block.super }} - {% if object %}{{ object }}{% else %}{% trans "API Clients" %}{% endif %}{% endblock %}
{% block page-title %}{% if object %}{{ object }}{% else %}{% trans "API Clients" %}{% endif %} | {{ block.super }}{% endblock %}
{% block title %}{{ block.super }} - {% trans "API Clients" %}{% endblock %}

View File

@ -4,7 +4,7 @@
{% block gadjo-js %}{% endblock %}
{% block bodyargs %} class="{% block bodyclasses %}{% endblock %}"{% endblock %}
{% block page-title %}{% firstof manager_site_title site_title "Authentic2" %}{% endblock %}
{% block page-title %}{% firstof global_title manager_site_title site_title "Authentic2" %}{% endblock %}
{% block site-title %}{% firstof manager_site_title site_title "Authentic2" %}{% endblock %}
{% block logout-url %}{% url 'auth_logout' %}?next={{ request.get_full_path|urlencode }}{% endblock %}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/form.html" %}
{% load gadjo i18n %}
{% block page-title %}{{ title }}{% endblock %}
{% block page-title %}{{ title }} | {{ block.super }}{% endblock %}
{% block appbar %}
<h2>{{ title }}</h2>

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/base.html" %}
{% load i18n gadjo %}
{% block page-title %}{{ block.super }}{% if object_name %} - {{ object_name }}{% endif %} - {% trans "Journal" %}{% endblock %}
{% block page-title %}{% trans "Journal" %}{% if object_name %} - {{ object_name }}{% endif %} | {{ block.super }}{% endblock %}
{% block breadcrumb %}
{{ block.super }}

View File

@ -1,9 +1,7 @@
{% extends "authentic2/manager/form.html" %}
{% load i18n %}
{% block page-title %}
{{ block.super }} - {% trans "Organizational unit" %} - {{ object }}
{% endblock %}
{% block page-title %}{% trans "Organizational unit" %} - {{ object }} | {{ block.super }}{% endblock %}
{% block breadcrumb %}
{{ block.super }}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/ou_common.html" %}
{% load i18n static django_tables2 %}
{% block page-title %}{{ block.super }} - {% trans "Organizational units" %}{% endblock %}
{% block page-title %}{% trans "Organizational units" %} | {{ block.super }}{% endblock %}
{% block breadcrumb %}
{{ block.super }}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/base.html" %}
{% load i18n static %}
{% block page-title %}{{ block.super }}{% if object %} - {{ object }}{% endif %}{% endblock %}
{% block page-title %}{% if object %}{{ object }} | {% endif %}{{ block.super }}{% endblock %}
{% block title %}{{ block.super }} - {% trans "Roles" %}{% endblock %}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/role_common.html" %}
{% load i18n gadjo %}
{% block page-title %}{{ block.super }} - {% trans "Edit" %}{% endblock %}
{% block page-title %}{% trans "Edit" %} | {{ block.super }}{% endblock %}
{% block breadcrumb %}
{{ block.super }}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/role_common.html" %}
{% load i18n static django_tables2 %}
{% block page-title %}{{ block.super }} - {% trans "Permissions" %}{% endblock %}
{% block page-title %}{% trans "Permissions" %} | {{ block.super }}{% endblock %}
{% block breadcrumb %}
{{ block.super }}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/role_common.html" %}
{% load i18n static django_tables2 %}
{% block page-title %}{{ block.super }} - {% trans "Roles" %}{% endblock %}
{% block page-title %}{% trans "Roles" %} | {{ block.super }}{% endblock %}
{% block page_title %}{% if multiple_ou and ou %}{{ ou }}{% else %}{{ block.super }}{% endif %}{% endblock %}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/base.html" %}
{% load i18n static django_tables2 %}
{% block page-title %}{% firstof manager_site_title site_title "Authentic2" %} - {{ object }}{% endblock %}
{% block page-title %}{{ object }} | {{ block.super }}{% endblock %}
{% block breadcrumb %}
{{ block.super }}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/base.html" %}
{% load i18n static django_tables2 %}
{% block page-title %}{{ block.super }} - {% trans "Services" %}{% endblock %}
{% block page-title %}{% trans "Services" %} | {{ block.super }}{% endblock %}
{% block breadcrumb %}
{{ block.super }}

View File

@ -1,9 +1,7 @@
{% extends "authentic2/manager/form.html" %}
{% load i18n %}
{% block page-title %}
{% trans "Add an user" %}
{% endblock %}
{% block page-title %}{% trans "Add an user" %} | {{ block.super }}{% endblock %}
{% block beforeform %}
{% if duplicate_users %}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/base.html" %}
{% load i18n static django_tables2 %}
{% block page-title %}{{ block.super }} - {% trans "Users" %}{% endblock %}
{% block page-title %}{% trans "Users" %} | {{ block.super }}{% endblock %}
{% block appbar %}
{{ block.super }}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/base.html" %}
{% load i18n %}
{% block page-title %}{{ block.super }} - {{ object }} - {% trans "Edit roles" %}{% endblock %}
{% block page-title %}{% trans "Edit roles" %} - {{ object }} | {{ block.super }}{% endblock %}
{% block breadcrumb %}
{{ block.super }}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/form.html" %}
{% load i18n static %}
{% block page-title %}{{ block.super }} - {{ object }}{% endblock %}
{% block page-title %}{{ object }} | {{ block.super }}{% endblock %}
{% block appbar %}
<h2>{{ object }}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/form.html" %}
{% load i18n %}
{% block page-title %}{{ block.super }} - {{ object }} - {% trans "Edit" %}{% endblock %}
{% block page-title %}{% trans "Edit" %} - {{ object }} | {{ block.super }}{% endblock %}
{% block breadcrumb %}
{{ block.super }}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/base.html" %}
{% load i18n gadjo static %}
{% block page-title %}{{ block.super }} - {% trans "User export" %}{% endblock %}
{% block page-title %}{% trans "User export" %} | {{ block.super }}{% endblock %}
{% block appbar %}
<h2>Users export</h2>

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/base.html" %}
{% load i18n gadjo static %}
{% block page-title %}{{ block.super }} - {% trans "Import Users" %}{% endblock %}
{% block page-title %}{% trans "Import Users" %} | {{ block.super }}{% endblock %}
{% block css %}
{{ block.super }}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/base.html" %}
{% load i18n gadjo static %}
{% block page-title %}{{ block.super }} - {% trans "Import Users" %}{% endblock %}
{% block page-title %}{% trans "Import Users" %} | {{ block.super }}{% endblock %}
{% block css %}
{{ block.super }}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/base.html" %}
{% load i18n gadjo static %}
{% block page-title %}{{ block.super }} - {% trans "Import Users" %}{% endblock %}
{% block page-title %}{% trans "Import Users" %} | {{ block.super }}{% endblock %}
{% block page_title %}{% trans "Imports" %}{% endblock %}

View File

@ -1,7 +1,7 @@
{% extends "authentic2/manager/base.html" %}
{% load i18n static django_tables2 %}
{% block page-title %}{{ block.super }} - {% trans "Users" %}{% endblock %}
{% block page-title %}{% trans "Users" %} | {{ block.super }}{% endblock %}
{% block appbar %}
{{ block.super }}