aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_tags.html.twig
blob: 73998b58def4cde5d1374658c72a0b0fdd56050b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{% if tags is iterable and tags is not empty %}
    <ul class="tags{{ listClass|default("")}}">
        {% for tag in tags %}
            <li class="chip">
                <a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a>
                {% if withRemove is defined and withRemove == true %}
                    <a 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 %}