From ad4d1caa9e744af57ca58a4e57576533eb682d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 23 Jan 2015 16:28:37 +0100 Subject: move WallabagBundle into Wallabag:CoreBundle --- .../Resources/views/Entry/entries.html.twig | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig (limited to 'src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig') diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig new file mode 100644 index 00000000..2f8423d7 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig @@ -0,0 +1,47 @@ +{% extends "WallabagCoreBundle::layout.html.twig" %} + +{% block title "Unread" %} + +{% block menu %} + {% include "WallabagCoreBundle::_menu.html.twig" %} +{% endblock %} + +{% block content %} + {% block pager %} + {% if entries is not empty %} +
+
{{ entries.count }} {% trans %}entries{% endtrans %}
+ +
+ {% endif %} + {% endblock %} + + {% if entries is empty %} +

{% trans %}No articles found.{% endtrans %}

+ {% else %} + {% for entry in entries %} +
+

{{ entry.title|raw }}

+ {% if entry.content| readingTime > 0 %} +
{% trans %}estimated reading time :{% endtrans %} {{ entry.content| readingTime }} min
+ {% else %} +
{% trans %}estimated reading time :{% endtrans %} < 1 min
+ {% endif %} + + +

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

+
+ {% endfor %} + {% endif %} +{% endblock %} -- cgit v1.2.3