X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=a13fe903b83588afb014456c68d19681c63f59ce;hb=1f00547836d1e832b31368413dccb32586206321;hp=f718043b05ffedc383c99011b4177ff558019a09;hpb=439b36323e37f669b056cc5228c44bb91196256c;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 f718043b..a13fe903 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,41 +1,48 @@ {% 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) }}
- + +
+
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
+ - {% endblock %} +
{% for entry in entries %}
-

{{ entry.title|raw }}

- {% if entry.readingTime > 0 %} -
+

{{ entry.title|raw }}

+ + {% set readingTime = entry.readingTime / app.user.config.readingSpeed %} +
- {{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': entry.readingTime}) }} - -
+ {% if readingTime > 0 %} + {{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }} {% else %} -
- - {{ 'entry.list.reading_time_less_one_minute'|trans|raw }} - -
+ {{ '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) }}…

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