]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix broken link to remove tags from entries
authorKevin Decherf <kevin@kdecherf.com>
Wed, 27 Dec 2017 20:23:06 +0000 (21:23 +0100)
committerKevin Decherf <kevin@kdecherf.com>
Wed, 27 Dec 2017 21:53:03 +0000 (22:53 +0100)
Fixes #3534

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig

index ab7295d56fb4657c0191a26da6177878b6d1744a..1c898f0ffe84e4e3ff80256fba059162acb38807 100644 (file)
@@ -9,7 +9,7 @@
     <div class="{{ subClass|default('original grey-text') }}">
         <a href="{{ entry.url|e }}" target="_blank" title="{{ entry.domainName|removeWww }}" class="tool grey-text">{{ entry.domainName|removeWww }}</a>
         {% if withTags is defined %}
-            {% include "@WallabagCore/themes/material/Entry/_tags.html.twig" with {'tags': entry.tags | slice(0, 3), 'listClass': ' hide-on-med-and-down'} only %}
+            {% include "@WallabagCore/themes/material/Entry/_tags.html.twig" with {'tags': entry.tags | slice(0, 3), 'entryId': entry.id, 'listClass': ' hide-on-med-and-down'} only %}
         {% endif %}
     </div>
 </div>
index 144a105ef3e38548d1c25cff326e1e0625058b40..1317b1295a2038d63c29f1b91f9f7d746a8e51fe 100644 (file)
@@ -4,7 +4,7 @@
             <li class="chip">
                 <a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a>
                 {% if withRemove %}
-                    <a href="{{ path('remove_tag', { 'entry': entry.id, 'tag': tag.id }) }}" onclick="return confirm('{{ 'entry.confirm.delete_tag'|trans|escape('js') }}')">
+                    <a href="{{ path('remove_tag', { 'entry': entryId, 'tag': tag.id }) }}" onclick="return confirm('{{ 'entry.confirm.delete_tag'|trans|escape('js') }}')">
                         <i class="material-icons vertical-align-middle">delete</i>
                     </a>
                 {% endif %}
index bebe29a21136cf31731008f1fdbe7c7014271e8c..54066e956a6864b7ecbdeaf56568e7ce883cc2cd 100644 (file)
                         </li>
                     {% endif %}
                 </ul>
-                {% include "@WallabagCore/themes/material/Entry/_tags.html.twig" with {'tags': entry.tags, 'withRemove': true} only %}
+                {% include "@WallabagCore/themes/material/Entry/_tags.html.twig" with {'tags': entry.tags, 'entryId': entry.id, 'withRemove': true} only %}
             </div>
 
             <div class="input-field nav-panel-add-tag" style="display: none">