]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Renamed variable for page title 2504/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 26 Oct 2016 13:49:44 +0000 (15:49 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 26 Oct 2016 13:49:44 +0000 (15:49 +0200)
src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig

index f7c9392d690903db4c7070884fe36e703f4f261b..f19f2922c6168016c4f2529a10bdf2f198e6b497 100644 (file)
@@ -1,11 +1,11 @@
 {% extends "WallabagCoreBundle::layout.html.twig" %}
 
 {% block title %}
-    {% set params = {} %}
+    {% set currentTag = '' %}
     {% if tag is defined %}
-        {% set params = {'label': tag} %}
+        {% set currentTag = tag %}
     {% endif %}
-    {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'params': params} %}
+    {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %}
 {% endblock %}
 
 {% block content %}
index 42dfee5831ffb12f13388c4033baebedfe3c5ae3..92cabdd92e0ed2969500687a9f52f00e6d1d6ef2 100644 (file)
@@ -7,7 +7,7 @@
 {% elseif currentRoute == 'all' %}
     {{ 'entry.page_titles.filtered'|trans }}
 {% elseif currentRoute == 'tag_entries' %}
-    {{ 'entry.page_titles.filtered_tags'|trans }} {{ params['label'] }}
+    {{ 'entry.page_titles.filtered_tags'|trans }} {{ currentTag }}
 {% elseif currentRoute == 'untagged' %}
     {{ 'entry.page_titles.untagged'|trans }}
 {% else %}
index 3e678a3260f039a85f57ac27c92fadee72e1a297..5c7cfd6538e46c9eb021059aed0cf2e5bb99762e 100644 (file)
@@ -1,11 +1,11 @@
 {% extends "WallabagCoreBundle::layout.html.twig" %}
 
 {% block title %}
-  {% set params = {} %}
-  {% if tag is defined %}
-    {% set params = {'label': tag} %}
-  {% endif %}
-  {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'params': params} %}
+    {% set currentTag = '' %}
+    {% if tag is defined %}
+        {% set currentTag = tag %}
+    {% endif %}
+    {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %}
 {% endblock %}
 
 {% block content %}