mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-06 15:38:47 +00:00
Merge pull request #2245 from wallabag/change-page-title
Changed where page title is displayed
This commit is contained in:
commit
8635ab1cd1
3 changed files with 15 additions and 26 deletions
|
@ -0,0 +1,13 @@
|
||||||
|
{% set currentRoute = app.request.attributes.get('_route') %}
|
||||||
|
|
||||||
|
{% if currentRoute == 'starred' %}
|
||||||
|
{{ 'entry.page_titles.starred'|trans }}
|
||||||
|
{% elseif currentRoute == 'archive' %}
|
||||||
|
{{ 'entry.page_titles.archived'|trans }}
|
||||||
|
{% elseif currentRoute == 'all' %}
|
||||||
|
{{ 'entry.page_titles.filtered'|trans }}
|
||||||
|
{% elseif currentRoute == 'tag_entries' %}
|
||||||
|
{{ 'entry.page_titles.filtered_tags'|trans }}
|
||||||
|
{% else %}
|
||||||
|
{{ 'entry.page_titles.unread'|trans }}
|
||||||
|
{% endif %}
|
|
@ -1,19 +1,7 @@
|
||||||
{% extends "WallabagCoreBundle::layout.html.twig" %}
|
{% extends "WallabagCoreBundle::layout.html.twig" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% set currentRoute = app.request.attributes.get('_route') %}
|
{% include "@WallabagCore/themes/_title.html.twig" %}
|
||||||
|
|
||||||
{% if currentRoute == 'starred' %}
|
|
||||||
{{ 'entry.page_titles.starred'|trans }}
|
|
||||||
{% elseif currentRoute == 'archive' %}
|
|
||||||
{{ 'entry.page_titles.archived'|trans }}
|
|
||||||
{% elseif currentRoute == 'all' %}
|
|
||||||
{{ 'entry.page_titles.filtered'|trans }}
|
|
||||||
{% elseif currentRoute == 'tag_entries' %}
|
|
||||||
{{ 'entry.page_titles.filtered_tags'|trans }}
|
|
||||||
{% else %}
|
|
||||||
{{ 'entry.page_titles.unread'|trans }}
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
{% extends "WallabagCoreBundle::layout.html.twig" %}
|
{% extends "WallabagCoreBundle::layout.html.twig" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% set currentRoute = app.request.attributes.get('_route') %}
|
{% include "@WallabagCore/themes/_title.html.twig" %}
|
||||||
|
|
||||||
{% if currentRoute == 'starred' %}
|
|
||||||
{{ 'entry.page_titles.starred'|trans }}
|
|
||||||
{% elseif currentRoute == 'archive' %}
|
|
||||||
{{ 'entry.page_titles.archived'|trans }}
|
|
||||||
{% elseif currentRoute == 'all' %}
|
|
||||||
{{ 'entry.page_titles.filtered'|trans }}
|
|
||||||
{% elseif currentRoute == 'tag_entries' %}
|
|
||||||
{{ 'entry.page_titles.filtered_tags'|trans }}
|
|
||||||
{% else %}
|
|
||||||
{{ 'entry.page_titles.unread'|trans }}
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
Loading…
Reference in a new issue