Fix & cleanup page titles
This commit is contained in:
parent
48ea35562e
commit
8b1cd8130e
|
@ -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">
|
||||
|
|
|
@ -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') }}
|
||||
|
|
|
@ -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' %}
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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) }}
|
||||
|
|
|
@ -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') }}
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue