X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fbaggy%2Fhome.twig;h=9518332f009f4642b8f04257b143fddd660a86a1;hb=086bf93f2b886592d13c9d9105ddcfd179797ee0;hp=5068f755a8c33fc202a914b1b3d20d9120c9b3f9;hpb=f3917b1ee4bba812e82da57dd181f50d62926db4;p=github%2Fwallabag%2Fwallabag.git
diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig
index 5068f755..9518332f 100755
--- a/themes/baggy/home.twig
+++ b/themes/baggy/home.twig
@@ -15,8 +15,15 @@
{% if tag %}
+ {% 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 %}
{% include '_display-mode.twig' %}
@@ -25,15 +32,35 @@
{% block pager %}
{% if nb_results > 1 %}
-
{{ nb_results }} {% trans "results" %}{% if search_term is defined %} {% trans %}found for « {{ search_term }} »{% endtrans %}{% 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 search_term is defined %}
-
{% trans "Only one result found for " %} « {{ search_term }} »
+
+ {% 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 %}