X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fbaggy%2Fhome.twig;h=8df5ce1ca0dda82800ab9b4e145679fa49589670;hb=60c3a4d3e17c991fccfea414b24ebf6e7649c90e;hp=a935b034a9c8dd2ea70d0825b38bd38e4f9af3ff;hpb=6065553c137ec63ec3ffddda0350f1d3d805b852;p=github%2Fwallabag%2Fwallabag.git
diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig
index a935b034..8df5ce1c 100755
--- a/themes/baggy/home.twig
+++ b/themes/baggy/home.twig
@@ -12,45 +12,52 @@
{% include '_menu.twig' %}
{% endblock %}
{% block content %}
- {% if tag %}
-
- {% include '_display-mode.twig' %}
- {% include '_sorting.twig' %}
-
- {% block pager %}
- {% if nb_results > 1 %}
-
- {% for entry in entries %}
-
-
- {% if entry.content| getReadingTime > 0 %}
-
- {% else %}
-
- {% endif %}
-
-
{{ entry.content|striptags|slice(0, 300) }}...
-
+ {% if tag %}
+
{% trans "Tag" %}: {{ tag.value }}
+ {% endif %}
+ {% if entries is empty %}
+
{% trans "No articles found." %}
+ {% else %}
+
+ {% include '_display-mode.twig' %}
+ {% include '_sorting.twig' %}
+
+ {% block pager %}
+ {% if nb_results > 1 %}
+
+
{{ 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 %}
+
+
+ {% if entry.content| getReadingTime > 0 %}
+
+ {% else %}
+
+ {% endif %}
+
+
{{ entry.content|striptags|slice(0, 300) }}...
+
- {% endfor %}
-
- {% if view == 'home' %}{% if nb_results > 1 %}
{{ "Mark all the entries as read" }}{% endif %}{% endif %}
- {% endif %}
- {{ block('pager') }}
+ {% endfor %}
+
+ {% if view == 'home' %}{% if nb_results > 1 %}