Merge pull request #1663 from wallabag/v2-remove-tags-from-entry

remove tag from entry #1377
This commit is contained in:
Jeremy Benoist
2016-02-11 16:49:03 +01:00
6 changed files with 77 additions and 3 deletions

View File

@ -159,7 +159,7 @@ main {
<div id="list">
{% for tag in entry.tags %}
<div class="chip">
{{ tag.label }}
{{ tag.label }} <a href="{{ path('remove_tag', { 'entry': entry.id, 'tag': tag.id }) }}"><i class="chip">✘</i></a>
</div>
{% endfor %}
</div>

View File

@ -9,7 +9,7 @@
<br />
<ul class="row data">
{% for tag in tags %}
<li id="tag-{{ tag.id|e }}" class="col l4 m6 s12">{{tag.label}}</li>
<li id="tag-{{ tag.id|e }}" class="col l4 m6 s12">{{tag.label}} ({{ tag.entries.getValues | length }})</li>
{% endfor %}
</ul>
{% endblock %}