X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=95c846867d8771eff6f76fe94c520ca95f7c0c3e;hb=cace43dd7ba27b3e26497ada1e62718c817ea735;hp=3af88b2378dfd81e58c9b138686b220056c64f27;hpb=93a95c09bf7ab389de623f6cda01dfc295aa6b74;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 3af88b23..95c84686 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,14 +1,33 @@
{% extends "WallabagCoreBundle::layout.html.twig" %}
{% block title %}
- {% include "@WallabagCore/themes/common/Entry/_title.html.twig" %}
+ {% 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 %}
@@ -20,6 +39,11 @@
{{ 'entry.list.reading_time_less_one_minute'|trans|raw }}
{% endif %}
+
+
+ {{ entry.createdAt|date('Y-m-d') }}
+
+
- {% if entry.previewPicture is null %}
+ {% if (entry.previewPicture is null or listMode == 1) %}
-
{{ entry.content|striptags|slice(0, 300) }}…
+
{{ entry.content|striptags|slice(0, 300) }}…
{% else %}
{% for tag in entry.tags | slice(0, 3) %}
@@ -46,28 +70,36 @@
{% endfor %}
+ {% if entries.getNbPages > 1 %}
+ {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
+ {% endif %}
+