diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-26 15:49:44 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-26 15:49:44 +0200 |
commit | 73e8df9e444c60b532d923b22e4dbe2efff18ede (patch) | |
tree | 484e7e7ab173970d6a2fa7c3ff8d34daa9ef66d8 | |
parent | 7a5043f187a1f9aac37f359c8f407e5febea50f7 (diff) | |
download | wallabag-73e8df9e444c60b532d923b22e4dbe2efff18ede.tar.gz wallabag-73e8df9e444c60b532d923b22e4dbe2efff18ede.tar.zst wallabag-73e8df9e444c60b532d923b22e4dbe2efff18ede.zip |
Renamed variable for page title
3 files changed, 9 insertions, 9 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig index f7c9392d..f19f2922 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig | |||
@@ -1,11 +1,11 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | 1 | {% extends "WallabagCoreBundle::layout.html.twig" %} |
2 | 2 | ||
3 | {% block title %} | 3 | {% block title %} |
4 | {% set params = {} %} | 4 | {% set currentTag = '' %} |
5 | {% if tag is defined %} | 5 | {% if tag is defined %} |
6 | {% set params = {'label': tag} %} | 6 | {% set currentTag = tag %} |
7 | {% endif %} | 7 | {% endif %} |
8 | {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'params': params} %} | 8 | {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %} |
9 | {% endblock %} | 9 | {% endblock %} |
10 | 10 | ||
11 | {% block content %} | 11 | {% block content %} |
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 index 42dfee58..92cabdd9 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig | |||
@@ -7,7 +7,7 @@ | |||
7 | {% elseif currentRoute == 'all' %} | 7 | {% elseif currentRoute == 'all' %} |
8 | {{ 'entry.page_titles.filtered'|trans }} | 8 | {{ 'entry.page_titles.filtered'|trans }} |
9 | {% elseif currentRoute == 'tag_entries' %} | 9 | {% elseif currentRoute == 'tag_entries' %} |
10 | {{ 'entry.page_titles.filtered_tags'|trans }} {{ params['label'] }} | 10 | {{ 'entry.page_titles.filtered_tags'|trans }} {{ currentTag }} |
11 | {% elseif currentRoute == 'untagged' %} | 11 | {% elseif currentRoute == 'untagged' %} |
12 | {{ 'entry.page_titles.untagged'|trans }} | 12 | {{ 'entry.page_titles.untagged'|trans }} |
13 | {% else %} | 13 | {% else %} |
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 3e678a32..5c7cfd65 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,11 +1,11 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | 1 | {% extends "WallabagCoreBundle::layout.html.twig" %} |
2 | 2 | ||
3 | {% block title %} | 3 | {% block title %} |
4 | {% set params = {} %} | 4 | {% set currentTag = '' %} |
5 | {% if tag is defined %} | 5 | {% if tag is defined %} |
6 | {% set params = {'label': tag} %} | 6 | {% set currentTag = tag %} |
7 | {% endif %} | 7 | {% endif %} |
8 | {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'params': params} %} | 8 | {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %} |
9 | {% endblock %} | 9 | {% endblock %} |
10 | 10 | ||
11 | {% block content %} | 11 | {% block content %} |