Changed where page title is displayed

This commit is contained in:
Nicolas Lœuillet 2016-08-26 21:26:21 +02:00
parent c4da9d1cd8
commit 74d68fbf25
No known key found for this signature in database
GPG key ID: 5656BE27E1E34D0A
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 %}