aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDanilow Alexandr <yandex@modos189.ru>2015-08-06 04:38:04 +0300
committerDanilow Alexandr <yandex@modos189.ru>2015-08-06 04:38:04 +0300
commit6ecdd48a3fadf076e062b6c634ae80f261c43e23 (patch)
tree3187445be24ab831b46299d35e8479dcaab3f64c
parentb17874a7d58e1ae853935a564b205566efd9ed74 (diff)
parent308db01684dea746e4a6d174a92b7f37c832fae6 (diff)
downloadwallabag-6ecdd48a3fadf076e062b6c634ae80f261c43e23.tar.gz
wallabag-6ecdd48a3fadf076e062b6c634ae80f261c43e23.tar.zst
wallabag-6ecdd48a3fadf076e062b6c634ae80f261c43e23.zip
Merge pull request #1286 from wallabag/v2-issue-1283
fix #1283: display the good title for each category
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig13
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 5ef5125f..fbdc1ffd 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 == 'starred' %}
7 {% trans %}Starred{% endtrans %}
8 {% elseif currentRoute == 'archive' %}
9 {% trans %}Archive{% endtrans %}
10 {% else %}
11 {% trans %}Unread{% endtrans %}
12 {% endif %}
13
14{% endblock %}
4 15
5{% block content %} 16{% block content %}
6 {% block pager %} 17 {% block pager %}