X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fbaggy%2Fhome.twig;h=426ead1d12420c9472495a44567e7c1ae7d69b91;hb=1256e4c645c86f4165d052bf8116b957b373b837;hp=33afdbbd5fd33b3c1f92a17520b59fbac2c0a5a3;hpb=60ca369cd328f4eae31005c547b9419a5ab33324;p=github%2Fwallabag%2Fwallabag.git diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig old mode 100644 new mode 100755 index 33afdbbd..426ead1d --- a/themes/baggy/home.twig +++ b/themes/baggy/home.twig @@ -12,25 +12,38 @@ {% 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 }} »{% 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 %}

{{ entry.title|raw }}

{% if entry.content| getReadingTime > 0 %} - +
{% trans "estimated reading time :" %} {{ entry.content| getReadingTime }} min
{% else %} -
+
{% trans "estimated reading time :" %} < 1 min
{% 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') }} + {% 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 tag %} + {% trans "Download as ePub3" %} + {% trans "Download as Mobi" %} + {% trans "Download as PDF" %} + {% elseif searchterm is defined %} + {% trans "Download as ePub3" %} + {% trans "Download as Mobi" %} + {% trans "Download as PDF" %} + {% else %} + {% trans "Download as ePub3" %} + {% trans "Download as Mobi" %} + {% trans "Download as PDF" %} + {% endif %} +{% endif %} {% endblock %}