diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2019-10-01 15:40:04 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2020-04-20 11:39:35 +0200 |
commit | 5434577883041ea1640b9b9e5221d6edb52779ea (patch) | |
tree | d1513166d5e95ecb3077477a284658e064f4bce2 /src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig | |
parent | 361aa02e2ac74ad01e9403d55d32a6a200b0666f (diff) | |
download | wallabag-5434577883041ea1640b9b9e5221d6edb52779ea.tar.gz wallabag-5434577883041ea1640b9b9e5221d6edb52779ea.tar.zst wallabag-5434577883041ea1640b9b9e5221d6edb52779ea.zip |
Improved tags list for material view
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig index 0a3475ef..50afa6d5 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig | |||
@@ -4,15 +4,16 @@ | |||
4 | 4 | ||
5 | {% block content %} | 5 | {% block content %} |
6 | <div class="results clearfix"> | 6 | <div class="results clearfix"> |
7 | <div class="nb-results left">{{ 'tag.list.number_on_the_page'|transchoice(tags|length) }}</div> | 7 | {{ 'tag.list.number_on_the_page'|transchoice(tags|length) }} |
8 | </div> | 8 | </div> |
9 | 9 | ||
10 | <br /> | ||
11 | |||
12 | <div class="row"> | 10 | <div class="row"> |
13 | <ul class="card-tag-labels"> | 11 | <ul class="card-tag-labels"> |
12 | <li class="chip"> | ||
13 | <a href="{{ path('untagged') }}">{{ 'tag.list.untagged'|trans }} ({{nbEntriesUntagged}})</a> | ||
14 | </li> | ||
14 | {% for tag in tags %} | 15 | {% for tag in tags %} |
15 | <li title="{{tag.label}} ({{ tag.nbEntries }})" id="tag-{{ tag.id }}"> | 16 | <li title="{{tag.label}} ({{ tag.nbEntries }})" id="tag-{{ tag.id }}" class="chip"> |
16 | <a href="{{ path('tag_entries', {'slug': tag.slug}) }}" class="card-tag-link" data-handle="tag-link"> | 17 | <a href="{{ path('tag_entries', {'slug': tag.slug}) }}" class="card-tag-link" data-handle="tag-link"> |
17 | {{ tag.label }} ({{ tag.nbEntries }}) | 18 | {{ tag.label }} ({{ tag.nbEntries }}) |
18 | </a> | 19 | </a> |
@@ -21,12 +22,12 @@ | |||
21 | {{ form_widget(renameForms[tag.id].label, {'attr': {'value': tag.label}}) }} | 22 | {{ form_widget(renameForms[tag.id].label, {'attr': {'value': tag.label}}) }} |
22 | {{ form_rest(renameForms[tag.id]) }} | 23 | {{ form_rest(renameForms[tag.id]) }} |
23 | </form> | 24 | </form> |
24 | <a class="card-tag-rename" data-handler="tag-rename" href="javascript:void(0);"> | 25 | <a class="card-tag-icon card-tag-rename" data-handler="tag-rename" href="javascript:void(0);"> |
25 | <i class="material-icons">mode_edit</i> | 26 | <i class="material-icons">mode_edit</i> |
26 | </a> | 27 | </a> |
27 | {% endif %} | 28 | {% endif %} |
28 | {% if app.user.config.feedToken %} | 29 | {% if app.user.config.feedToken %} |
29 | <a rel="alternate" type="application/atom+xml" href="{{ path('tag_feed', {'username': app.user.username, 'token': app.user.config.feedToken, 'slug': tag.slug}) }}" class="card-tag-rss"><i class="material-icons">rss_feed</i></a> | 30 | <a rel="alternate" type="application/atom+xml" href="{{ path('tag_feed', {'username': app.user.username, 'token': app.user.config.feedToken, 'slug': tag.slug}) }}" class="card-tag-icon"><i class="material-icons">rss_feed</i></a> |
30 | {% endif %} | 31 | {% endif %} |
31 | </li> | 32 | </li> |
32 | {% endfor %} | 33 | {% endfor %} |
@@ -34,10 +35,6 @@ | |||
34 | </div> | 35 | </div> |
35 | 36 | ||
36 | <div> | 37 | <div> |
37 | {% if nbEntriesUntagged == 0 %} | 38 | |
38 | {{ 'tag.list.no_untagged_entries'|trans }} | ||
39 | {% else %} | ||
40 | <a href="{{ path('untagged') }}">{{ 'tag.list.see_untagged_entries'|trans }} ({{nbEntriesUntagged}})</a> | ||
41 | {% endif %} | ||
42 | </div> | 39 | </div> |
43 | {% endblock %} | 40 | {% endblock %} |