2017-12-21 16:10:46 +00:00
|
|
|
{% if tags is iterable and tags is not empty %}
|
2022-05-03 21:28:20 +00:00
|
|
|
<ul class="tags{{ listClass|default("") }}">
|
2017-12-21 16:10:46 +00:00
|
|
|
{% for tag in tags %}
|
2020-12-31 01:47:56 +00:00
|
|
|
<li class="chip" title="{{ tag.label }}">
|
2017-12-21 16:10:46 +00:00
|
|
|
<a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a>
|
2018-01-23 17:48:52 +00:00
|
|
|
{% if withRemove is defined and withRemove == true %}
|
2022-05-03 21:28:20 +00:00
|
|
|
<a href="{{ path('remove_tag', {'entry': entryId, 'tag': tag.id}) }}" onclick="return confirm('{{ 'entry.confirm.delete_tag'|trans|escape('js') }}')">
|
2017-12-21 16:10:46 +00:00
|
|
|
<i class="material-icons vertical-align-middle">delete</i>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|