diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-12-26 16:00:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-26 16:00:58 +0100 |
commit | 3473e600b1d0ae0695b8c15342a6a1f76e2bc973 (patch) | |
tree | cb75c9e3ac7bccdffcad97c2aa637a6717bf25e4 /src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig | |
parent | 11ed735c09391f244dfa45b93cdbfded11196866 (diff) | |
parent | c04bde29a36e4a60c596808d0ac45dc23476db44 (diff) | |
download | wallabag-3473e600b1d0ae0695b8c15342a6a1f76e2bc973.tar.gz wallabag-3473e600b1d0ae0695b8c15342a6a1f76e2bc973.tar.zst wallabag-3473e600b1d0ae0695b8c15342a6a1f76e2bc973.zip |
Merge pull request #3525 from Simounet/fix/empty-card-title-link
Fix empty card title link
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig | 14 |
1 files changed, 14 insertions, 0 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 new file mode 100644 index 00000000..144a105e --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig | |||
@@ -0,0 +1,14 @@ | |||
1 | {% if tags is iterable and tags is not empty %} | ||
2 | <ul class="tags{{ listClass|default("")}}"> | ||
3 | {% for tag in tags %} | ||
4 | <li class="chip"> | ||
5 | <a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a> | ||
6 | {% if withRemove %} | ||
7 | <a href="{{ path('remove_tag', { 'entry': entry.id, 'tag': tag.id }) }}" onclick="return confirm('{{ 'entry.confirm.delete_tag'|trans|escape('js') }}')"> | ||
8 | <i class="material-icons vertical-align-middle">delete</i> | ||
9 | </a> | ||
10 | {% endif %} | ||
11 | </li> | ||
12 | {% endfor %} | ||
13 | </ul> | ||
14 | {% endif %} | ||