X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fdefault%2Fhome.twig;h=b90005598cbbb5ffa3e924fce530427720c09230;hb=0d36d2af955bd2178d11aece8fe1ce1939380934;hp=b6185df18ba6c57285e30bc4c866119df1275b78;hpb=d619120fc45693b73d14e4f2c8b98fc5b5489b7c;p=github%2Fwallabag%2Fwallabag.git diff --git a/themes/default/home.twig b/themes/default/home.twig index b6185df1..b9000559 100755 --- a/themes/default/home.twig +++ b/themes/default/home.twig @@ -16,6 +16,11 @@ {% include '_sorting.twig' %} {% endblock %} {% block content %} + + {% if includeImport %} + {% include '_import.twig' %} + {% endif %} + {% if tag %}

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

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

{{ 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 view == 'home' %}{% if nb_results > 1 %}

{% trans "Mark all the entries as read" %}

{% endif %}{% endif %} + {% if searchterm is defined %}{% trans "Tag these results as" %} {{ searchterm }}{% endif %}
+ + {% if searchterm is defined %}{% trans "Delete results matching" %} {{ searchterm }}{% endif %}
+ + {% if tag %}{% trans "Mark all articles from this tag as read" %}
{% endif %} + + {% if tag %} + {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %} + {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %} + {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %} + {% elseif searchterm is defined %} + {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %} + {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %} + {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %} + {% else %} + {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %} + {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %} + {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %} + {% endif %} + + {% endif %} {% endblock %}