X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=859b166b18c8abd4a60cfdfa070cb2c3366a3142;hb=78295b99dd1721c613f1ce52e2debbe6f6db7753;hp=22f456daac03b2ce6b09f81c1d8cf5b38ac33537;hpb=e543d03fd77f773b84cb58c60ac2622360ab4134;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 22f456da..859b166b 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,28 +1,34 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title %}{{ 'entry.page_titles.unread'|trans }}{% endblock %} +{% block title %} + {% 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 %} - {% block pager %} -
-
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
- + + {% set listMode = app.user.config.listMode %} +
+
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
+ - {% endblock %} +
{% for entry in entries %} -
-

{{ entry.title|raw }}

+
+

{{ entry.title|e|raw }}

{% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
@@ -33,6 +39,11 @@ {{ 'entry.list.reading_time_less_one_minute'|trans|raw }} {% endif %} + + + {{ entry.createdAt|date('Y-m-d') }} + +
- {% if entry.previewPicture is null %} -

{{ entry.content|striptags|slice(0, 300) }}…

+ {% if (entry.previewPicture is null or listMode == 1) %} + +

{{ entry.content|striptags|slice(0, 300) }}…

{% else %} - {{ entry.title|raw }} + + {{ entry.title|e|raw }} {% endif %}
{% endfor %} -
+
+ {{ form_label(form.httpStatus) }} +
+ {{ form_widget(form.httpStatus) }} +
+
+
{{ form_label(form.readingTime) }} @@ -124,6 +186,6 @@
- - +
+ {% endif %} {% endblock %}