X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Fhome.twig;h=db4e0888e29966b53ee2d321b35f46df2ab49c07;hb=ef6051b95e2e289bb32107b75594406db2801653;hp=03f9f70da513d1be93380220788423c8e329a75d;hpb=667009727a38890eb651815843c1bc02869a4119;p=github%2Fwallabag%2Fwallabag.git diff --git a/tpl/home.twig b/tpl/home.twig index 03f9f70d..db4e0888 100644 --- a/tpl/home.twig +++ b/tpl/home.twig @@ -1,30 +1,47 @@ {% 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 %} {% block precontent %} {% 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|e }}

+

{{ entry.title|raw }}

{{ entry.content|striptags|slice(0, 300) }}...

{{ entry.url | e | getDomain }}

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