X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Fhome.twig;h=db4e0888e29966b53ee2d321b35f46df2ab49c07;hb=refs%2Fpull%2F199%2Fhead;hp=a2fa9a93eb0529c5061a4852f4ed266f7e3e4935;hpb=1cbd70639c5f97f6030d0df6624ca200dba86945;p=github%2Fwallabag%2Fwallabag.git diff --git a/tpl/home.twig b/tpl/home.twig index a2fa9a93..db4e0888 100644 --- a/tpl/home.twig +++ b/tpl/home.twig @@ -1,5 +1,13 @@ {% extends "layout.twig" %} -{% block title %}{% trans "home" %}{% endblock %} +{% block title %} +{% if view == 'fav' %} +{% trans "favoris" %} +{% elseif view == 'archive' %} +{% trans "archive" %} +{% else %} +{% trans "unread" %} +{% endif %} +{% endblock %} {% block menu %} {% include '_menu.twig' %} {% endblock %} @@ -10,8 +18,18 @@ {% endblock %} {% block content %} - {{ page_links | raw }} - {% for entry in entries %} + {% 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 }}

- {% endfor %} - {{ page_links | raw }} + {% endfor %} + {% endif %} + {{ block('pager') }} {% endblock %} \ No newline at end of file