Fix & cleanup page titles

This commit is contained in:
Igor Scheller 2023-12-07 15:11:05 +01:00 committed by Michael Weimann
parent 48ea35562e
commit 8b1cd8130e
7 changed files with 11 additions and 15 deletions

View File

@ -2,7 +2,7 @@
{% import 'macros/base.twig' as m %}
{% import 'macros/form.twig' as f %}
{% set title %}{% block title %}{{ __('log.log') }}{% endblock %}{% endset %}
{% block title %}{{ __('log.log') }}{% endblock %}
{% block content %}
<div class="col-md-12">

View File

@ -2,12 +2,12 @@
{% import 'macros/base.twig' as m %}
{% import 'macros/form.twig' as f %}
{% set title %}{% block title %}{{ __('schedule.import.title') }}{% endblock %}{% endset %}
{% block title %}{{ __('schedule.import.title') }}{% endblock %}
{% block content %}
<div class="container">
<h1>
{% block content_title %}{{ title }}{% endblock %}
{% block content_title %}{{ block('title') }}{% endblock %}
{% if is_index|default(false) %}
{{ m.button(m.icon('plus-lg'), url('/admin/schedule/edit'), 'secondary') }}

View File

@ -2,13 +2,13 @@
{% import 'macros/base.twig' as m %}
{% import 'macros/form.twig' as f %}
{% set title %}{% block title %}{{ __('shifts.history') }}{% endblock %}{% endset %}
{% block title %}{{ __('shifts.history') }}{% endblock %}
{% block content %}
<div class="container">
<h1>
{{ m.button(m.icon('chevron-left'), url('/admin-shifts'), null, 'sm') }}
{% block content_title %}{{ title }}{% endblock %}
{% block content_title %}{{ block('title') }}{% endblock %}
</h1>
{% include 'layouts/parts/messages.twig' %}

View File

@ -2,9 +2,7 @@
{% import 'macros/base.twig' as m %}
{% import 'macros/form.twig' as f %}
{% block title %}
{{ __('faq.faq') }}
{% endblock %}
{% block title %}{{ __('faq.faq') }}{% endblock %}
{% block content %}
<div class="container">

View File

@ -2,10 +2,7 @@
{% import 'macros/base.twig' as m %}
{% import 'macros/form.twig' as f %}
{% block title %}
{{ m.button(m.icon('chevron-left'), url('/news'), null, 'sm') }}
{% if news.is_meeting %}{{ __('news.is_meeting') }} {% endif %}{{ news.title }}
{% endblock %}
{% block title %}{% if news.is_meeting %}{{ __('news.is_meeting') }} {% endif %}{{ news.title }}{% endblock %}
{% block news %}
{{ _self.news(news) }}

View File

@ -8,6 +8,9 @@
{% block content %}
<div class="container">
<h1>
{% if not is_overview|default(false) %}
{{ m.button(m.icon('chevron-left'), url('/news'), null, 'sm') }}
{% endif %}
{{ block('title') }}
{%- if has_permission_to('admin_news') and is_overview|default(false) -%}
{{ m.button(m.icon('plus-lg'), url('/admin/news', only_meetings ? {'meeting': 1} : {}), 'secondary') }}

View File

@ -2,9 +2,7 @@
{% import 'macros/base.twig' as m %}
{% import 'macros/form.twig' as f %}
{% block title %}
{{ __('question.questions') }}
{% endblock %}
{% block title %}{{ __('question.questions') }}{% endblock %}
{% block content %}
<div class="container">