X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fcourgette%2Fhome.twig;h=401f3f20d96fc6a074c5e31689c813efdda97ba7;hb=ab157bbb75ba226917145c9bf906cbf764a85cd0;hp=1367ebe833736ae15c3d17b1556a3d0ff3cdb4c8;hpb=5ed8050791ef562ff4351ede3a077ab1e8b0d916;p=github%2Fwallabag%2Fwallabag.git diff --git a/themes/courgette/home.twig b/themes/courgette/home.twig index 1367ebe8..401f3f20 100755 --- a/themes/courgette/home.twig +++ b/themes/courgette/home.twig @@ -14,8 +14,8 @@ {% block precontent %} {% if entries|length > 1 %} {% endif %} {% endblock %} @@ -26,9 +26,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 %} @@ -44,6 +50,13 @@

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

{% endfor %} - {% endif %} + {{ block('pager') }} + + {% 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 %} \ No newline at end of file