X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fdefault%2Fhome.twig;h=08e33fadab1ebe31c0490ef3b6802376a3b4f243;hb=f5fb8197b45c1d433954c41cbabdb953be6cfd4f;hp=abc96af84c2662f28b76c7320d9c022f6de1d234;hpb=d4b6e20e2f04c5e93ab77b732a1108aee1b639d6;p=github%2Fwallabag%2Fwallabag.git diff --git a/themes/default/home.twig b/themes/default/home.twig index abc96af8..08e33fad 100755 --- a/themes/default/home.twig +++ b/themes/default/home.twig @@ -25,22 +25,47 @@

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

{% endif %} - {% if entries is empty %} -

{% trans "No articles found." %}

+ {% if entries is empty%} + {% if view == 'home' %}

{% trans "No articles unread. Good job !" %} + {% elseif view == 'fav' %}

{% trans "No articles favourited" %} + {% elseif view == 'archive' %}

{% trans "No articles marked as read" %} + {% elseif view == 'tags' %}

{% trans "No articles with this tag found" %} + {% elseif searchterm is defined %}

{% trans %}No articles found for « {{ searchterm }} »{% endtrans %} + {% else %}

{% trans "No articles found" %}{% endif %} +

{% else %} {% block pager %} {% if nb_results > 1 %}
-
{{ nb_results }} {% trans "results" %}{% if searchterm is defined %}{% trans " found for « " %} {{ searchterm }} »{% endif %} - {% trans "random" %}
+
+ {% if view == 'home' %} + {{ nb_results }} {% trans "articles unread" %} + {% elseif view == 'fav' %} + {{ nb_results }} {% trans "articles favourited" %} + {% elseif view == 'archive' %} + {{ nb_results }} {% trans "articles marked as read" %} + {% elseif view == 'tag' %} + {{ nb_results }} {% trans "articles with this tag" %} + {% elseif searchterm is defined %}{{ nb_results }} + {% trans %}articles found for « {{ searchterm }} »{% endtrans %} + {% else %} + {{ nb_results }} {% trans "articles" %} + {% endif %} + {% if view == 'home' or view == 'fav' or view == 'archive' %} + {% trans "random" %}{% endif %} +
{{ page_links | raw }}
{% elseif nb_results == 1 %} - {% if searchterm is defined %}
-
{% trans "Only one result found for " %} « {{ searchterm }} »
+
+ {% if view == 'home' %}{% trans "Only one article unread. Way to go !" %} + {% elseif view == 'fav' %}{% trans "Just one article favourited" %} + {% elseif view == 'archive' %}{% trans "One article marked as read" %} + {% elseif view == 'tag' %}{% trans "One article with this tag" %} + {% elseif searchterm is defined %}{% trans %}Only one result found for « {{ searchterm }} »{% endtrans %} + {% else %}{% trans "One article found" %}{% endif %}
- {% endif %} {% endif %} {% endblock %} {% for entry in entries %}