mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 03:21:01 +00:00
Changed where page title is displayed
This commit is contained in:
parent
c4da9d1cd8
commit
74d68fbf25
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" %}
|
||||
|
||||
{% block title %}
|
||||
{% 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 %}
|
||||
{% include "@WallabagCore/themes/_title.html.twig" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
|
|
@ -1,19 +1,7 @@
|
|||
{% extends "WallabagCoreBundle::layout.html.twig" %}
|
||||
|
||||
{% block title %}
|
||||
{% 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 %}
|
||||
{% include "@WallabagCore/themes/_title.html.twig" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
|
Loading…
Reference in a new issue