aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-09-30 09:38:08 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-09-30 09:38:08 +0200
commit2ff9991a1dfac0d3463662b96f529aac70c66f76 (patch)
tree51074ab8e0305b786c422577948fb8116368d138 /src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig
parentfb479be3a0af95bba45c13b11e1f85bb9c753d25 (diff)
downloadwallabag-2ff9991a1dfac0d3463662b96f529aac70c66f76.tar.gz
wallabag-2ff9991a1dfac0d3463662b96f529aac70c66f76.tar.zst
wallabag-2ff9991a1dfac0d3463662b96f529aac70c66f76.zip
Removed duplicated templates files
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig
new file mode 100644
index 00000000..d1c2f203
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig
@@ -0,0 +1,15 @@
1{% set currentRoute = app.request.attributes.get('_route') %}
2
3{% if currentRoute == 'starred' %}
4 {{ 'entry.page_titles.starred'|trans }}
5{% elseif currentRoute == 'archive' %}
6 {{ 'entry.page_titles.archived'|trans }}
7{% elseif currentRoute == 'all' %}
8 {{ 'entry.page_titles.filtered'|trans }}
9{% elseif currentRoute == 'tag_entries' %}
10 {{ 'entry.page_titles.filtered_tags'|trans }}
11{% elseif currentRoute == 'untagged' %}
12 {{ 'entry.page_titles.untagged'|trans }}
13{% else %}
14 {{ 'entry.page_titles.unread'|trans }}
15{% endif %}