diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-02-27 15:20:01 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-02-27 15:20:01 +0100 |
commit | 61e79d934495ee24bb824e4c26b534ef9cd7fec3 (patch) | |
tree | 66f57690221a5ba3077d06d8553b8f1074b12171 /themes/default | |
parent | a8464c97197c1ea9c4b3c35d7cec6a5398b7a522 (diff) | |
parent | 36a733af8dee1de5a0f81f1efe70e96a435b6a17 (diff) | |
download | wallabag-61e79d934495ee24bb824e4c26b534ef9cd7fec3.tar.gz wallabag-61e79d934495ee24bb824e4c26b534ef9cd7fec3.tar.zst wallabag-61e79d934495ee24bb824e4c26b534ef9cd7fec3.zip |
Merge pull request #510 from mariroz/dev
some baggy theme fixes and enhancement: issue #479
Diffstat (limited to 'themes/default')
-rwxr-xr-x | themes/default/_sorting.twig | 6 | ||||
-rwxr-xr-x[-rw-r--r--] | themes/default/home.twig | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/themes/default/_sorting.twig b/themes/default/_sorting.twig new file mode 100755 index 00000000..4f2fceb0 --- /dev/null +++ b/themes/default/_sorting.twig | |||
@@ -0,0 +1,6 @@ | |||
1 | {% if entries|length > 1 %} | ||
2 | <ul id="sort"> | ||
3 | <li><a href="./?sort=ia&view={{ view }}&id={{ id }}"><img src="{{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/top.png" alt="{% trans "by date asc" %}" title="{% trans "by date asc" %}" /></a> {% trans "by date" %} <a href="./?sort=id&view={{ view }}&id={{ id }}"><img src="{{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/down.png" alt="{% trans "by date desc" %}" title="{% trans "by date desc" %}" /></a></li> | ||
4 | <li><a href="./?sort=ta&view={{ view }}&id={{ id }}"><img src="{{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/top.png" alt="{% trans "by title asc" %}" title="{% trans "by title asc" %}" /></a> {% trans "by title" %} <a href="./?sort=td&view={{ view }}&id={{ id }}"><img src="{{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/down.png" alt="{% trans "by title desc" %}" title="{% trans "by title desc" %}" /></a></li> | ||
5 | </ul> | ||
6 | {% endif %} | ||
diff --git a/themes/default/home.twig b/themes/default/home.twig index 165fecc6..bd5fc2d6 100644..100755 --- a/themes/default/home.twig +++ b/themes/default/home.twig | |||
@@ -12,12 +12,7 @@ | |||
12 | {% include '_menu.twig' %} | 12 | {% include '_menu.twig' %} |
13 | {% endblock %} | 13 | {% endblock %} |
14 | {% block precontent %} | 14 | {% block precontent %} |
15 | {% if entries|length > 1 %} | 15 | {% include '_sorting.twig' %} |
16 | <ul id="sort"> | ||
17 | <li><a href="./?sort=ia&view={{ view }}&id={{ id }}"><img src="{{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/top.png" alt="{% trans "by date asc" %}" title="{% trans "by date asc" %}" /></a> {% trans "by date" %} <a href="./?sort=id&view={{ view }}&id={{ id }}"><img src="{{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/down.png" alt="{% trans "by date desc" %}" title="{% trans "by date desc" %}" /></a></li> | ||
18 | <li><a href="./?sort=ta&view={{ view }}&id={{ id }}"><img src="{{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/top.png" alt="{% trans "by title asc" %}" title="{% trans "by title asc" %}" /></a> {% trans "by title" %} <a href="./?sort=td&view={{ view }}&id={{ id }}"><img src="{{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/down.png" alt="{% trans "by title desc" %}" title="{% trans "by title desc" %}" /></a></li> | ||
19 | </ul> | ||
20 | {% endif %} | ||
21 | {% endblock %} | 16 | {% endblock %} |
22 | {% block content %} | 17 | {% block content %} |
23 | {% if tag %} | 18 | {% if tag %} |