From 19e7b372d4894fd8e134d8104e13c580650ec24e Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 13 Feb 2024 01:45:24 +0200 Subject: [PATCH] add pagination titles --- templates/default/main/index.html.twig | 1 + templates/default/main/namespace.html.twig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/default/main/index.html.twig b/templates/default/main/index.html.twig index cddff76..968dd34 100644 --- a/templates/default/main/index.html.twig +++ b/templates/default/main/index.html.twig @@ -1,4 +1,5 @@ {% extends 'default/layout.html.twig' %} +{% block title %}{% if request.get('part') > 1 %}{{ 'Part' | trans | upper }} {{ request.get('part') }} - {% endif %}{{ app.name }}{% endblock %} {% block body %}
diff --git a/templates/default/main/namespace.html.twig b/templates/default/main/namespace.html.twig index 59b768f..e8b6764 100644 --- a/templates/default/main/namespace.html.twig +++ b/templates/default/main/namespace.html.twig @@ -1,5 +1,5 @@ {% extends 'default/layout.html.twig' %} -{% block title %}{% if title %}{{ title }} - {% endif %}{{ app.name }}{% endblock %} +{% block title %}{% if title %}{{ title }} - {% endif %}{% if request.get('part') > 1 %}{{ 'Part' | trans | upper }} {{ request.get('part') }} - {% endif %}{{ app.name }}{% endblock %} {% block body %}