Merge pull request #2245 from wallabag/change-page-title

Changed where page title is displayed
This commit is contained in:
Jeremy Benoist 2016-08-28 14:33:46 +02:00 committed by GitHub
commit 8635ab1cd1
3 changed files with 15 additions and 26 deletions

View file

@ -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 %}

View file

@ -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 %}

View file

@ -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 %}