diff options
author | NumEricR <eric.github@gmail.com> | 2013-09-05 22:16:36 +0200 |
---|---|---|
committer | NumEricR <eric.github@gmail.com> | 2013-09-05 22:16:36 +0200 |
commit | 2edde7fe337a8502ee5d37ae0b76f76295864b7c (patch) | |
tree | d36cf0b6ab195f6cacd5459945b9454fd7a9b91b /tpl | |
parent | 08a12b6dbbbdff54ffd93c6c8ed3608f0c99e34e (diff) | |
download | wallabag-2edde7fe337a8502ee5d37ae0b76f76295864b7c.tar.gz wallabag-2edde7fe337a8502ee5d37ae0b76f76295864b7c.tar.zst wallabag-2edde7fe337a8502ee5d37ae0b76f76295864b7c.zip |
Display sort links only if there is at least 2 articles in current list
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/home.twig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tpl/home.twig b/tpl/home.twig index f51c34f2..f44e040e 100644 --- a/tpl/home.twig +++ b/tpl/home.twig | |||
@@ -12,10 +12,12 @@ | |||
12 | {% include '_menu.twig' %} | 12 | {% include '_menu.twig' %} |
13 | {% endblock %} | 13 | {% endblock %} |
14 | {% block precontent %} | 14 | {% block precontent %} |
15 | {% if entries|length > 1 %} | ||
15 | <ul id="sort"> | 16 | <ul id="sort"> |
16 | <li><a href="./?sort=ia&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/top.png" alt="{% trans "by date asc" %}" title="{% trans "by date asc" %}" /></a> {% trans "by date" %} <a href="./?sort=id&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/down.png" alt="{% trans "by date desc" %}" title="{% trans "by date desc" %}" /></a></li> | 17 | <li><a href="./?sort=ia&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/top.png" alt="{% trans "by date asc" %}" title="{% trans "by date asc" %}" /></a> {% trans "by date" %} <a href="./?sort=id&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/down.png" alt="{% trans "by date desc" %}" title="{% trans "by date desc" %}" /></a></li> |
17 | <li><a href="./?sort=ta&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/top.png" alt="{% trans "by title asc" %}" title="{% trans "by title asc" %}" /></a> {% trans "by title" %} <a href="./?sort=td&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/down.png" alt="{% trans "by title desc" %}" title="{% trans "by title desc" %}" /></a></li> | 18 | <li><a href="./?sort=ta&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/top.png" alt="{% trans "by title asc" %}" title="{% trans "by title asc" %}" /></a> {% trans "by title" %} <a href="./?sort=td&view={{ view }}"><img src="./tpl/img/{{ constant('THEME') }}/down.png" alt="{% trans "by title desc" %}" title="{% trans "by title desc" %}" /></a></li> |
18 | </ul> | 19 | </ul> |
20 | {% endif %} | ||
19 | {% endblock %} | 21 | {% endblock %} |
20 | {% block content %} | 22 | {% block content %} |
21 | {{ page_links | raw }} | 23 | {{ page_links | raw }} |