X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fbaggy%2Fhome.twig;h=5dd91307748bd7c40a75908f540bcd808f90cee5;hb=d967a1fa14237648fc63c44f6a28c9c077b3e1bc;hp=d58e53ceb7401bc5e0f5aeb5fcb4faef6e4e3f28;hpb=5e98c2183ae824ab6a1dd2dc22f8619a0d718977;p=github%2Fwallabag%2Fwallabag.git diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig old mode 100644 new mode 100755 index d58e53ce..5dd91307 --- a/themes/baggy/home.twig +++ b/themes/baggy/home.twig @@ -12,20 +12,33 @@ {% include '_menu.twig' %} {% endblock %} {% block content %} + {% 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" %}
+
{{ nb_results }} {% trans "results" %}{% if search_term is defined %}{% trans " found for « " %} {{ search_term }} »{% 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 %} @@ -40,10 +53,10 @@

{{ entry.content|striptags|slice(0, 300) }}...

- + {% endfor %}
- {% if view == 'home' %}{% if nb_results > 1 %}{{ "Mark all the entries as read" }} {% trans "" %}{% endif %}{% endif %} + {% if view == 'home' %}{% if nb_results > 1 %}{{ "Mark all the entries as read" }}{% endif %}{% endif %} {% endif %} {{ block('pager') }} {% endblock %}