]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #1286 from wallabag/v2-issue-1283
authorDanilow Alexandr <yandex@modos189.ru>
Thu, 6 Aug 2015 01:38:04 +0000 (04:38 +0300)
committerDanilow Alexandr <yandex@modos189.ru>
Thu, 6 Aug 2015 01:38:04 +0000 (04:38 +0300)
fix #1283: display the good title for each category

src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig

index 5ef5125f1d35772ff279430291af2077be0781ff..fbdc1ffdff78a22504ad19add61143cfbe272d97 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 == 'starred' %}
+    {% trans %}Starred{% endtrans %}
+  {% elseif currentRoute == 'archive' %}
+    {% trans %}Archive{% endtrans %}
+  {% else %}
+    {% trans %}Unread{% endtrans %}
+  {% endif %}
+
+{% endblock %}
 
 {% block content %}
     {% block pager %}