X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fbaggy%2Fhome.twig;h=9518332f009f4642b8f04257b143fddd660a86a1;hb=086bf93f2b886592d13c9d9105ddcfd179797ee0;hp=157615aee5a02836b549c372ee9213d51af82190;hpb=750d904a16465bb01eac64e87aba0b27c6fb7d12;p=github%2Fwallabag%2Fwallabag.git diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig index 157615ae..9518332f 100755 --- a/themes/baggy/home.twig +++ b/themes/baggy/home.twig @@ -15,8 +15,15 @@ {% if tag %}

{% 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 %}
{% include '_display-mode.twig' %} @@ -25,25 +32,45 @@ {% block pager %} {% if nb_results > 1 %}
-
{{ nb_results }} {% trans "results" %}{% if search_term is defined %} {% trans %}found for « {{ search_term }} »{% endtrans %}{% endif %}
+
+ {% 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 %}
{% 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 %}
{{ block('pager') }} - {% if view == 'home' %}{% if nb_results > 1 %}{% trans "Mark all the entries as read" %}{% endif %}{% endif %} + {% 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 searchterm is defined %}{% trans "Delete results matching" %} {{ searchterm }}{% endif %}
+ + {% if tag %}{% trans "Mark all articles from this tag as read" %}
{% endif %} + + {% if tag %} + {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %} + {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %} + {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %} + + {% elseif searchterm is defined %} + {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %} + {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %} + {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %} - {% if search_term is defined %}{% trans %}Apply the tag {{ search_term }} to this search{% endtrans %}{% endif %} - - {% if tag %}{% trans "Download the articles from this tag in an epub" %} - {% elseif search_term is defined %}{% trans "Download the articles from this search in an epub" %} - {% else %}{% trans "Download the articles from this category in an epub" %}{% endif %} - + {% else %} + {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %} + {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %} + {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %} {% endif %} +{% endif %} + + {% endblock %}