From 7f9f5281e5fe6dd92c810f7945c7761ca17fd2e6 Mon Sep 17 00:00:00 2001 From: NumEricR Date: Wed, 28 Aug 2013 19:12:11 +0200 Subject: Add number of results next to pager --- tpl/home.twig | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tpl/home.twig') diff --git a/tpl/home.twig b/tpl/home.twig index f51c34f2..db4e0888 100644 --- a/tpl/home.twig +++ b/tpl/home.twig @@ -18,10 +18,17 @@ {% endblock %} {% block content %} - {{ page_links | raw }} {% if entries is empty %}

{% trans "No link available here!" %}

{% else %} + {% block pager %} + {% if nb_results > 1 %} +
+
{{ nb_results }} {% trans "results" %}
+ {{ page_links | raw }} +
+ {% endif %} + {% endblock %} {% for entry in entries %}

{{ entry.title|raw }}

@@ -36,5 +43,5 @@
{% endfor %} {% endif %} - {{ page_links | raw }} + {{ block('pager') }} {% endblock %} \ No newline at end of file -- cgit v1.2.3 From 2edde7fe337a8502ee5d37ae0b76f76295864b7c Mon Sep 17 00:00:00 2001 From: NumEricR Date: Thu, 5 Sep 2013 22:16:36 +0200 Subject: Display sort links only if there is at least 2 articles in current list --- tpl/home.twig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tpl/home.twig') diff --git a/tpl/home.twig b/tpl/home.twig index f51c34f2..f44e040e 100644 --- a/tpl/home.twig +++ b/tpl/home.twig @@ -12,10 +12,12 @@ {% include '_menu.twig' %} {% endblock %} {% block precontent %} + {% if entries|length > 1 %} + {% endif %} {% endblock %} {% block content %} {{ page_links | raw }} -- cgit v1.2.3