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 %}
|
2023-06-14 20:25:35 +00:00
|
|
|
<li class="chip">
|
2023-06-13 19:04:29 +00:00
|
|
|
<a class="chip-label" 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 %}
|
2023-12-25 20:42:08 +00:00
|
|
|
{% set current_path = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %}
|
|
|
|
<a class="chip-action" href="{{ path('remove_tag', {'entry': entryId, 'tag': tag.id, redirect: current_path}) }}" 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 %}
|