Changed where page title is displayed
This commit is contained in:
parent
c4da9d1cd8
commit
74d68fbf25
@ -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…
x
Reference in New Issue
Block a user