X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Fhome.twig;h=db4e0888e29966b53ee2d321b35f46df2ab49c07;hb=refs%2Fpull%2F199%2Fhead;hp=c79d4276781953ac558273577c33f4abefffadeb;hpb=2b840e0cfb63a453bea67a98541f3df9c273c5f5;p=github%2Fwallabag%2Fwallabag.git diff --git a/tpl/home.twig b/tpl/home.twig index c79d4276..db4e0888 100644 --- a/tpl/home.twig +++ b/tpl/home.twig @@ -1,62 +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 %} -
+ {% 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.url|e }}
-
-
- {% endfor %} +
+

{{ entry.title|raw }}

+ +

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

+

{{ entry.url | e | getDomain }}

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