diff options
author | Stéphane HULARD <s.hulard@chstudio.fr> | 2018-01-23 18:48:52 +0100 |
---|---|---|
committer | Stéphane HULARD <s.hulard@chstudio.fr> | 2018-01-23 18:51:52 +0100 |
commit | cc09434ea470a4de2ed37e59f30244736826dc36 (patch) | |
tree | 99d0cba7238c4241a5c39ea625965598fefac901 | |
parent | f24e9bfab0f5d8b1bbac11e3ba731bd81157ee51 (diff) | |
download | wallabag-cc09434ea470a4de2ed37e59f30244736826dc36.tar.gz wallabag-cc09434ea470a4de2ed37e59f30244736826dc36.tar.zst wallabag-cc09434ea470a4de2ed37e59f30244736826dc36.zip |
Fix error when withRemove variable is not defined.
Since the withRemove variable is a template flag, it can be undefined.
In the Entry\Card\_content.html.twig template for example, the withRemove variable is not defined.
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig index 1317b129..73998b58 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig | |||
@@ -3,7 +3,7 @@ | |||
3 | {% for tag in tags %} | 3 | {% for tag in tags %} |
4 | <li class="chip"> | 4 | <li class="chip"> |
5 | <a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a> | 5 | <a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a> |
6 | {% if withRemove %} | 6 | {% if withRemove is defined and withRemove == true %} |
7 | <a href="{{ path('remove_tag', { 'entry': entryId, 'tag': tag.id }) }}" onclick="return confirm('{{ 'entry.confirm.delete_tag'|trans|escape('js') }}')"> | 7 | <a href="{{ path('remove_tag', { 'entry': entryId, 'tag': tag.id }) }}" onclick="return confirm('{{ 'entry.confirm.delete_tag'|trans|escape('js') }}')"> |
8 | <i class="material-icons vertical-align-middle">delete</i> | 8 | <i class="material-icons vertical-align-middle">delete</i> |
9 | </a> | 9 | </a> |