diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-05 21:10:20 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-05 21:10:20 +0200 |
commit | b1a65df9df833674ed2520a825e5a981f4fff828 (patch) | |
tree | c377966cc145f4e51e50fdc0e30251364fec8223 | |
parent | 8d9b8912aff9ccfa85241a1d64eb4b1366ed1b43 (diff) | |
download | wallabag-b1a65df9df833674ed2520a825e5a981f4fff828.tar.gz wallabag-b1a65df9df833674ed2520a825e5a981f4fff828.tar.zst wallabag-b1a65df9df833674ed2520a825e5a981f4fff828.zip |
fix #1283: display the good title for each category
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index f68eec12..1db63c21 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | |||
@@ -1,6 +1,17 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | 1 | {% extends "WallabagCoreBundle::layout.html.twig" %} |
2 | 2 | ||
3 | {% block title "Unread" %} | 3 | {% block title %} |
4 | {% set currentRoute = app.request.attributes.get('_route') %} | ||
5 | |||
6 | {% if currentRoute == 'unread' %} | ||
7 | {% trans %}Unread{% endtrans %} | ||
8 | {% elseif currentRoute == 'starred' %} | ||
9 | {% trans %}Starred{% endtrans %} | ||
10 | {% elseif currentRoute == 'archive' %} | ||
11 | {% trans %}Archive{% endtrans %} | ||
12 | {% endif %} | ||
13 | |||
14 | {% endblock %} | ||
4 | 15 | ||
5 | {% block content %} | 16 | {% block content %} |
6 | {% block pager %} | 17 | {% block pager %} |