mirror of
https://github.com/wallabag/wallabag.git
synced 2024-05-31 23:48:06 +00:00
15 lines
726 B
Twig
15 lines
726 B
Twig
{% if tags is iterable and tags is not empty %}
|
|
<ul class="tags{{ listClass|default("") }}">
|
|
{% for tag in tags %}
|
|
<li class="chip">
|
|
<a class="chip-label" href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a>
|
|
{% if withRemove is defined and withRemove == true %}
|
|
<a class="chip-action" 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 %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|