X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=6c26d5bf4f716861408a0abd29677bf5f753ffec;hb=e8911f7c09fa9d8009d7c7ee9fb0c181d2ffbc31;hp=a2caaebf80a9e5c4fcf51db7afcf0087f9614c2b;hpb=09e5b9391e0a09db02b2aa4c8f649b59e3baeb16;p=github%2Fwallabag%2Fwallabag.git
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
index a2caaebf..6c26d5bf 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
@@ -1,13 +1,34 @@
{% extends "WallabagCoreBundle::layout.html.twig" %}
-{% block title %}{{ 'entry.page_titles.unread'|trans }}{% endblock %}
+{% block title %}
+ {% set filter = '' %}
+ {% if tag is defined %}
+ {% set filter = tag %}
+ {% endif %}
+ {% if searchTerm is defined and searchTerm is not empty %}
+ {% set filter = searchTerm %}
+ {% endif %}
+ {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'filter': filter} %}
+{% endblock %}
{% block content %}
- {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
+
+ {% set listMode = app.user.config.listMode %}
+
-
+
+
{% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
@@ -18,23 +39,67 @@
{{ 'entry.list.reading_time_less_one_minute'|trans|raw }}
{% endif %}
+
+
+ {{ entry.createdAt|date('Y-m-d') }}
+
+
- {% if entry.previewPicture is null %}
-
{{ entry.content|striptags|slice(0, 300) }}…
+ {% if (entry.previewPicture is null or listMode == 1) %}
+
+
{{ entry.content|striptags|slice(0, 300) }}…
{% else %}
-
+
+ {% for tag in entry.tags | slice(0, 3) %}
+ - {{ tag.label }}
+ {% endfor %}
+
+
{% endif %}
{% endfor %}
-
{{ form_label(form.readingTime) }}
@@ -109,7 +191,6 @@
-
-
- {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
+
+ {% endif %}
{% endblock %}