diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/Tag')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig b/src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig new file mode 100644 index 00000000..7c2a9f45 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/Tag/tags.html.twig | |||
@@ -0,0 +1,27 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title "Tags" %} | ||
4 | |||
5 | {% block content %} | ||
6 | {% block pager %} | ||
7 | {% if tags is not empty %} | ||
8 | <div class="results"> | ||
9 | <div class="nb-results">{{ tags.count }} {% trans %}tags{% endtrans %}</div> | ||
10 | <div class="pagination"> | ||
11 | {% for p in range(1, tags.nbPages) %} | ||
12 | <li> | ||
13 | <a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" class="{{ currentPage == p ? 'current':''}}" >{{ p }}</a> | ||
14 | </li> | ||
15 | {% endfor %} | ||
16 | </div> | ||
17 | </div> | ||
18 | {% endif %} | ||
19 | {% endblock %} | ||
20 | |||
21 | {% if tags is empty %} | ||
22 | <div class="messages warning"><p>{% trans %}No tags found.{% endtrans %}</p></div> | ||
23 | {% else %} | ||
24 | {% for tag in tags %}{{tag.title}} | ||
25 | {% endfor %} | ||
26 | {% endif %} | ||
27 | {% endblock %} | ||