X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fdefault%2Fhome.twig;h=093c2dc5e20b04076dc767143b89ec1b01c9de6b;hb=refs%2Fpull%2F819%2Fhead;hp=165fecc631e0a7bf6673e28b75295b98e2f4963f;hpb=e7345a2c4feaa64c8582844425f388e57f1f933d;p=github%2Fwallabag%2Fwallabag.git diff --git a/themes/default/home.twig b/themes/default/home.twig old mode 100644 new mode 100755 index 165fecc6..093c2dc5 --- a/themes/default/home.twig +++ b/themes/default/home.twig @@ -12,14 +12,15 @@ {% include '_menu.twig' %} {% endblock %} {% block precontent %} - {% if entries|length > 1 %} - - {% endif %} + +{% include '_sorting.twig' %} {% endblock %} {% block content %} + + {% if includeImport %} + {% include '_import.twig' %} + {% endif %} + {% if tag %}

{% trans "Tag" %}: {{ tag.value }}

{% endif %} @@ -30,9 +31,15 @@ {% block pager %} {% if nb_results > 1 %}
-
{{ nb_results }} {% trans "results" %}
+
{{ nb_results }} {% trans "results" %}{% if search_term is defined %}{% trans " found for « " %} {{ search_term }} »{% endif %}
{{ page_links | raw }}
+ {% elseif nb_results == 1 %} + {% if search_term is defined %} +
+
{% trans "Only one result found for " %} « {{ search_term }} »
+
+ {% endif %} {% endif %} {% endblock %} {% for entry in entries %} @@ -48,7 +55,14 @@

{{ entry.content|striptags|slice(0, 300) }}...

{% endfor %} - {% endif %} + {{ block('pager') }} + {% if view == 'home' %}{% if nb_results > 1 %}{% trans "mark all the entries as read" %}{% endif %}{% endif %} + + {% if tag %}{% trans "Download the articles from this tag in an epub" %} + {% elseif search_term is defined %}{% trans "Download the articles from this search in an epub" %} + {% else %}{% trans "Download the articles from this category in an epub" %}{% endif %} + + {% endif %} {% endblock %}