X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=4182628f658e2bc4ef83a846bd30618975c4011b;hb=2226c81340f920b2461a01f44b707bf52fb526e9;hp=56a0faacfb09247619e18ed9c9aff2ac170c6574;hpb=d213219ec785db757dba455acd53480ab0d292fb;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 56a0faac..4182628f 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,41 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} +{% block head %} + {{ parent() }} + {% if tag is defined and app.user.config.feedToken %} + + {% 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 %} + {% set readingTime = entry.readingTime / app.user.config.readingSpeed * 200 %}
{% if readingTime > 0 %} @@ -42,25 +63,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,24 +92,25 @@ @@ -100,6 +122,12 @@ ×
+ {% if currentRoute != 'untagged' and nbEntriesUntagged != 0 %} +
+ {{ 'tag.list.see_untagged_entries'|trans }} ({{nbEntriesUntagged}}) +
+ {% endif %} +
@@ -122,6 +150,11 @@ {{ form_widget(form.previewPicture) }} {{ form_label(form.previewPicture) }}
+ +
+ {{ form_widget(form.isPublic) }} + {{ form_label(form.isPublic) }} +
@@ -131,6 +164,13 @@
+
+ {{ form_label(form.httpStatus) }} +
+ {{ form_widget(form.httpStatus) }} +
+
+
{{ form_label(form.readingTime) }}