X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=832112be73a87fbf1859862739f7de4932f2f6ba;hb=bb8ad42b279531a4437ab283e3b995bfa88ea87f;hp=56a0faacfb09247619e18ed9c9aff2ac170c6574;hpb=1c282b1da0491cda620e03ab92c00341aa80e18b;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 56a0faac..832112be 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,20 +1,35 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} +{% block head %} + {{ parent() }} + {% if tag is defined and app.user.config.rssToken %} + + {% endif %} +{% endblock %} + {% block title %} - {% set currentTag = '' %} + {% set filter = '' %} {% if tag is defined %} - {% set currentTag = tag %} + {% set filter = tag %} {% endif %} - {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %} + {% 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 %} - + {% set currentRoute = app.request.attributes.get('_route') %} + {% 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 %}
@@ -42,25 +57,25 @@
- {% 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 %} @@ -71,8 +86,7 @@
+ +
+ {{ form_widget(form.isPublic) }} + {{ form_label(form.isPublic) }} +
@@ -131,6 +150,13 @@
+
+ {{ form_label(form.httpStatus) }} +
+ {{ form_widget(form.httpStatus) }} +
+
+
{{ form_label(form.readingTime) }}