X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=7108efbd430bd3c929f55499e86796ef5dee8ddd;hb=09ef25c3c3882db94b3941f3ba33ebc78b5dbe4d;hp=a13fe903b83588afb014456c68d19681c63f59ce;hpb=6f85bed294d6dd9f2dd9c945544074cbde38e191;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 a13fe903..7108efbd 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,5 +1,12 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} +{% block head %} + {{ parent() }} + {% if tag is defined and app.user.config.rssToken %} + + {% endif %} +{% endblock %} + {% block title %} {% set filter = '' %} {% if tag is defined %} @@ -12,12 +19,21 @@ {% endblock %} {% block content %} - + {% 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 %}
@@ -45,25 +61,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 %} @@ -74,13 +90,9 @@
+ +
+ {{ form_widget(form.isPublic) }} + {{ form_label(form.isPublic) }} +