diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-09-30 10:21:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-30 10:21:33 +0200 |
commit | 555ed552ca974fde57d3c153e33b28c32fb3115e (patch) | |
tree | 51074ab8e0305b786c422577948fb8116368d138 /src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig | |
parent | fb479be3a0af95bba45c13b11e1f85bb9c753d25 (diff) | |
parent | 2ff9991a1dfac0d3463662b96f529aac70c66f76 (diff) | |
download | wallabag-555ed552ca974fde57d3c153e33b28c32fb3115e.tar.gz wallabag-555ed552ca974fde57d3c153e33b28c32fb3115e.tar.zst wallabag-555ed552ca974fde57d3c153e33b28c32fb3115e.zip |
Merge pull request #2318 from wallabag/refactor-templates
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.twig | 15 |
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 %} | ||