X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=bdd44b54499b10950097331f380ed1fcc1d4d62e;hb=64f81bc31699ed239e4becec1cfa7ebc0bef2b5a;hp=a07285bdc213b8ada227a1354b263a6a3ba6f927;hpb=371bcca0f6b18951a15e56daae5bca2558c01851;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 a07285bd..bdd44b54 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,39 +1,34 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} {% block title %} - {% set currentRoute = app.request.attributes.get('_route') %} - - {% if currentRoute == 'starred' %} - {{ 'entry.page_titles.starred'|trans }} - {% elseif currentRoute == 'archive' %} - {{ 'entry.page_titles.archived'|trans }} - {% elseif currentRoute == 'all' %} - {{ 'entry.page_titles.filtered'|trans }} - {% elseif currentRoute == 'tag_entries' %} - {{ 'entry.page_titles.filtered_tags'|trans }} - {% else %} - {{ 'entry.page_titles.unread'|trans }} + {% 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 %} - {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %} - - {% 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 %}
@@ -44,54 +39,67 @@ {{ '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 %} + {% if entries.getNbPages > 1 %} + {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% endif %} + {% if form is not null %} -
+
+ {{ form_label(form.httpStatus) }} +
+ {{ form_widget(form.httpStatus) }} +
+
+
{{ form_label(form.readingTime) }} @@ -171,8 +186,6 @@
- +
{% endif %} - - {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %} {% endblock %}