X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fdefault%2Fhome.twig;h=6bc549e6c6d3e6e43265647800c377f83418f1eb;hb=refs%2Fpull%2F921%2Fhead;hp=c1b29ec36a09cc36030f820d222d3f93fef70b4c;hpb=07ae20eeedc75b5b121647cc4833a36956fc6356;p=github%2Fwallabag%2Fwallabag.git
diff --git a/themes/default/home.twig b/themes/default/home.twig
old mode 100644
new mode 100755
index c1b29ec3..6bc549e6
--- a/themes/default/home.twig
+++ b/themes/default/home.twig
@@ -12,30 +12,41 @@
{% include '_menu.twig' %}
{% endblock %}
{% block precontent %}
- {% if entries|length > 1 %}
-
- - {% trans "by date" %}
- - {% trans "by title" %}
-
- {% 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 link available here!" %}
+ {% 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 %}
{% endfor %}
- {% endif %}
+
{{ block('pager') }}
-{% endblock %}
\ No newline at end of file
+
+ {% 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 the articles from this tag in an epub" %}
+ {% elseif searchterm is defined %}{% trans "Download the articles from this search in an epub" %}
+ {% else %}{% trans "Download the articles from this category in an epub" %}{% endif %}
+
+ {% endif %}
+{% endblock %}