X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fdefault%2Fhome.twig;h=b90005598cbbb5ffa3e924fce530427720c09230;hb=64364606dd217017d909c71166c303dd53ff55a9;hp=cbe8c62f5c4f71995b7544f878c531fb902a3e3b;hpb=5df72bb4a42b94370d54ed7277235541d7b6afab;p=github%2Fwallabag%2Fwallabag.git
diff --git a/themes/default/home.twig b/themes/default/home.twig
old mode 100644
new mode 100755
index cbe8c62f..b9000559
--- a/themes/default/home.twig
+++ b/themes/default/home.twig
@@ -12,23 +12,34 @@
{% include '_menu.twig' %}
{% endblock %}
{% block precontent %}
- {% if entries|length > 1 %}
-
-
{% trans "by date" %} ![{% trans {% trans]({{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/down.png)
-
{% trans "by title" %} ![{% trans]({{ poche_url }}/themes/{{ theme }}/img/{{ theme }}/down.png)
-
- {% endif %}
+
+{% include '_sorting.twig' %}
{% endblock %}
{% block content %}
+
+ {% if includeImport %}
+ {% include '_import.twig' %}
+ {% endif %}
+
+ {% if tag %}
+ {% trans "Tag" %}: {{ tag.value }}
+ {% endif %}
+
{% if entries is empty %}
{% trans "No articles found." %}
{% else %}
{% block pager %}
{% if nb_results > 1 %}
-
{{ nb_results }} {% trans "results" %}
+
{{ nb_results }} {% trans "results" %}{% if searchterm is defined %}{% trans " found for « " %} {{ searchterm }} »{% endif %}
{{ page_links | raw }}
+ {% elseif nb_results == 1 %}
+ {% if searchterm is defined %}
+
+
{% trans "Only one result found for " %} « {{ searchterm }} »
+
+ {% endif %}
{% endif %}
{% endblock %}
{% for entry in entries %}
@@ -44,6 +55,28 @@
{{ entry.content|striptags|slice(0, 300) }}...
{% endfor %}
- {% 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 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 %}
+ {% 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 %}