aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default/home.twig
diff options
context:
space:
mode:
authorNicolas Lœuillet <nicolas@loeuillet.org>2014-04-03 14:42:03 +0200
committerNicolas Lœuillet <nicolas@loeuillet.org>2014-04-03 14:42:03 +0200
commit0d67b00d5d3b7ce1b76b639dcc65c415a5f13439 (patch)
tree7c4d113bb1c3d90ef53e08138a2850576395780f /themes/default/home.twig
parent99679d06884120c57f43b44e55e03595f1f87bed (diff)
parent7d2f1aa2793595aa6cdc58a58260184234cfa809 (diff)
downloadwallabag-0d67b00d5d3b7ce1b76b639dcc65c415a5f13439.tar.gz
wallabag-0d67b00d5d3b7ce1b76b639dcc65c415a5f13439.tar.zst
wallabag-0d67b00d5d3b7ce1b76b639dcc65c415a5f13439.zip
Merge pull request #595 from wallabag/dev1.6.11.6.0
wallabag 1.6.0
Diffstat (limited to 'themes/default/home.twig')
-rwxr-xr-x[-rw-r--r--]themes/default/home.twig21
1 files changed, 14 insertions, 7 deletions
diff --git a/themes/default/home.twig b/themes/default/home.twig
index 165fecc6..d6cb98e8 100644..100755
--- a/themes/default/home.twig
+++ b/themes/default/home.twig
@@ -12,14 +12,15 @@
12{% include '_menu.twig' %} 12{% include '_menu.twig' %}
13{% endblock %} 13{% endblock %}
14{% block precontent %} 14{% block precontent %}
15 {% if entries|length > 1 %} 15
16 <ul id="sort"> 16{% include '_sorting.twig' %}
17 <li><a href="./?sort=ia&amp;view={{ view }}&amp;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&amp;view={{ view }}&amp;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&amp;view={{ view }}&amp;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&amp;view={{ view }}&amp;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 %} 17{% endblock %}
22{% block content %} 18{% block content %}
19
20 {% if includeImport %}
21 {% include '_import.twig' %}
22 {% endif %}
23
23 {% if tag %} 24 {% if tag %}
24 <h3>{% trans "Tag" %}: <b>{{ tag.value }}</b></h3> 25 <h3>{% trans "Tag" %}: <b>{{ tag.value }}</b></h3>
25 {% endif %} 26 {% endif %}
@@ -30,9 +31,15 @@
30 {% block pager %} 31 {% block pager %}
31 {% if nb_results > 1 %} 32 {% if nb_results > 1 %}
32 <div class="results"> 33 <div class="results">
33 <div class="nb-results">{{ nb_results }} {% trans "results" %}</div> 34 <div class="nb-results">{{ nb_results }} {% trans "results" %}{% if search_term is defined %}{% trans " found for « " %} {{ search_term }} »{% endif %}</div>
34 {{ page_links | raw }} 35 {{ page_links | raw }}
35 </div> 36 </div>
37 {% elseif nb_results == 1 %}
38 {% if search_term is defined %}
39 <div class="results">
40 <div class="nb-results">{% trans "Only one result found for " %} « {{ search_term }} »</div>
41 </div>
42 {% endif %}
36 {% endif %} 43 {% endif %}
37 {% endblock %} 44 {% endblock %}
38 {% for entry in entries %} 45 {% for entry in entries %}