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=d1baa28359e37c31f36b8fb429fbb8904dfaffbb;hpb=68003139e133835805b143b62c4407f19b495dab;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 d1baa283..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,20 +1,39 @@ {% 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 %} + {% if searchTerm is defined and searchTerm is not empty %} + {% set filter = searchTerm %} {% endif %} - {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %} + {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'filter': filter} %} {% 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 %}
@@ -42,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 %} @@ -71,13 +90,9 @@
+ +
+ {{ form_widget(form.isPublic) }} + {{ form_label(form.isPublic) }} +