X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=f3baae2c7c78e944a959e20e9b4d5ca9809e6981;hb=0447a75b06142afe59a179bb59ee94f1978aa7a9;hp=3af88b2378dfd81e58c9b138686b220056c64f27;hpb=9d127b3b9365c73bc393bc303545f24c159cee31;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..f3baae2c 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,15 +1,48 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} +{% block head %} + {{ parent() }} + {% if tag is defined and app.user.config.rssToken %} + + {% endif %} +{% endblock %} + {% 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 currentRoute = app.request.attributes.get('_route') %} + {% if currentRoute == 'homepage' %} + {% set currentRoute = 'unread' %} + {% endif %} + {% set listMode = app.user.config.listMode %} +
+
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
+ +
{% for entry in entries %} -
-

{{ entry.title|raw }}

+
+

{{ entry.title | striptags | truncate(80, true, '…') | default('entry.default_title'|trans) | raw }}

{% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
@@ -20,54 +53,63 @@ {{ '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 %} - {{ entry.title|raw }} + {{ entry.title|e|raw }} {% endif %}
{% endfor %} + {% if entries.getNbPages > 1 %} + {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% endif %} + {% if form is not null %} -
+

{{ 'entry.filters.title'|trans }}

× @@ -95,6 +137,11 @@ {{ form_widget(form.previewPicture) }} {{ form_label(form.previewPicture) }}
+ +
+ {{ form_widget(form.isPublic) }} + {{ form_label(form.isPublic) }} +
@@ -104,6 +151,13 @@
+
+ {{ form_label(form.httpStatus) }} +
+ {{ form_widget(form.httpStatus) }} +
+
+
{{ form_label(form.readingTime) }}