]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig
fix #1283: display the good title for each category
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / Entry / entries.html.twig
index f68eec12a4ec67c378c114a228d7f8e00e94b00d..1db63c21828532e30a0e4548aadf3efd61c9701a 100644 (file)
@@ -1,6 +1,17 @@
 {% extends "WallabagCoreBundle::layout.html.twig" %}
 
-{% block title "Unread" %}
+{% block title %}
+  {% set currentRoute = app.request.attributes.get('_route') %}
+
+  {% if currentRoute == 'unread' %}
+    {% trans %}Unread{% endtrans %}
+  {% elseif currentRoute == 'starred' %}
+    {% trans %}Starred{% endtrans %}
+  {% elseif currentRoute == 'archive' %}
+    {% trans %}Archive{% endtrans %}
+  {% endif %}
+
+{% endblock %}
 
 {% block content %}
     {% block pager %}