X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fbaggy%2Fhome.twig;h=e788b588f88c2ac681fba1b84c4c3286ef6201df;hb=2f3c05651e6013a28188d0e7fbf075011ed63e9e;hp=5262c05bb5d97916b7198c171040e56b4f23292a;hpb=36a733af8dee1de5a0f81f1efe70e96a435b6a17;p=github%2Fwallabag%2Fwallabag.git diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig index 5262c05b..e788b588 100755 --- a/themes/baggy/home.twig +++ b/themes/baggy/home.twig @@ -25,14 +25,20 @@ {% block pager %} {% if nb_results > 1 %}
-
{{ nb_results }} {% trans "results" %}
+
{{ nb_results }} {% trans "results" %}{% if search_term is defined %} {% trans %}found for « {{ search_term }} »{% endtrans %}{% 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 %} -
+

{{ entry.title|raw }}

{% if entry.content| getReadingTime > 0 %} @@ -50,7 +56,14 @@ {% endfor %}
+ {{ block('pager') }} {% if view == 'home' %}{% if nb_results > 1 %}{{ "Mark all the entries as read" }}{% endif %}{% endif %} + + {% if search_term is defined %}{% trans %} Apply the tag {{ search_term }} to this search {% endtrans %}{% 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 %} - {{ block('pager') }} {% endblock %}