From 7ec445b06e05d8caa5219c5802007d897c48ab4e Mon Sep 17 00:00:00 2001 From: tcit Date: Fri, 25 Apr 2014 16:20:25 +0200 Subject: Big changes for epub export. Now possible to do it from a tag, a category and a search. Also, improved ebook rendering. --- themes/baggy/home.twig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'themes/baggy/home.twig') diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig index 5dd91307..301f353a 100755 --- a/themes/baggy/home.twig +++ b/themes/baggy/home.twig @@ -57,6 +57,11 @@ {% endfor %} {% if view == 'home' %}{% if nb_results > 1 %}{{ "Mark all the entries as read" }}{% endif %}{% 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 %} + {% endif %} {{ block('pager') }} {% endblock %} -- cgit v1.2.3 From 2395a3802a821667b1bdd84a848d193d0d27ad2a Mon Sep 17 00:00:00 2001 From: tcit Date: Tue, 29 Apr 2014 19:57:59 +0200 Subject: Changed template organisation --- themes/baggy/home.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/baggy/home.twig') diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig index 301f353a..ef2e097c 100755 --- a/themes/baggy/home.twig +++ b/themes/baggy/home.twig @@ -56,6 +56,7 @@ {% endfor %} + {{ block('pager') }} {% if view == 'home' %}{% if nb_results > 1 %}{{ "Mark all the entries as read" }}{% endif %}{% endif %} {% if tag %}{% trans "Download the articles from this tag in an epub" %} @@ -63,5 +64,4 @@ {% else %}{% trans "Download the articles from this category in an epub" %}{% endif %} {% endif %} - {{ block('pager') }} {% endblock %} -- cgit v1.2.3 From decc23aaf230f320613f5f09e0c70c7eb758ca70 Mon Sep 17 00:00:00 2001 From: tcit Date: Wed, 30 Apr 2014 11:25:03 +0200 Subject: Added save search as tag functionality --- themes/baggy/home.twig | 1 + 1 file changed, 1 insertion(+) (limited to 'themes/baggy/home.twig') diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig index 5dd91307..92a3c866 100755 --- a/themes/baggy/home.twig +++ b/themes/baggy/home.twig @@ -57,6 +57,7 @@ {% endfor %} {% if view == 'home' %}{% if nb_results > 1 %}{{ "Mark all the entries as read" }}{% endif %}{% endif %} + {% if search_term is defined %}{% trans "Apply the tag" %} {{ search_term }} {% trans "to this search" %}{% endif %} {% endif %} {{ block('pager') }} {% endblock %} -- cgit v1.2.3 From 4555c38d3b857bf91ed383f379d9697ed6a79860 Mon Sep 17 00:00:00 2001 From: tcit Date: Wed, 14 May 2014 19:08:33 +0200 Subject: Changed theme for better translation method --- themes/baggy/home.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'themes/baggy/home.twig') diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig index 92a3c866..8df5ce1c 100755 --- a/themes/baggy/home.twig +++ b/themes/baggy/home.twig @@ -25,7 +25,7 @@ {% block pager %} {% if nb_results > 1 %}
-
{{ nb_results }} {% trans "results" %}{% if search_term is defined %}{% trans " found for « " %} {{ search_term }} »{% endif %}
+
{{ nb_results }} {% trans "results" %}{% if search_term is defined %} {% trans %}found for « {{ search_term }} »{% endtrans %}{% endif %}
{{ page_links | raw }}
{% elseif nb_results == 1 %} @@ -57,7 +57,7 @@ {% endfor %} {% if view == 'home' %}{% if nb_results > 1 %}{{ "Mark all the entries as read" }}{% endif %}{% endif %} - {% if search_term is defined %}{% trans "Apply the tag" %} {{ search_term }} {% trans "to this search" %}{% endif %} + {% if search_term is defined %}{% trans %} Apply the tag {{ search_term }} to this search {% endtrans %}{% endif %} {% endif %} {{ block('pager') }} {% endblock %} -- cgit v1.2.3