X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=1225e68060d29934fac9e93c675b43f9b896eb96;hb=920d88599a077a7624574345243caf45c6bc5820;hp=c8e4a533902ab1ee2844a694fb72d6bc23811614;hpb=519ba0b5e71cd9b5abd620f682fd2296e6180af3;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index c8e4a533..1225e680 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig @@ -1,18 +1,11 @@ {% 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 }} - {% else %} - {{ 'entry.page_titles.unread'|trans }} - {% endif %} - + {% set currentTag = '' %} + {% if tag is defined %} + {% set currentTag = tag %} + {% endif %} + {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %} {% endblock %} {% block content %} @@ -26,16 +19,21 @@
{% if not entry.previewPicture is null %}
+
{% endif %}
{% if not entry.previewPicture is null %} - + more_vert {% endif %} - {{ entry.title|striptags|slice(0, 42)|raw }} + {{ entry.title|striptags|raw }}
@@ -50,13 +48,18 @@ {% if entry.previewPicture is null %}

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

+ {% endif %}
{% if not entry.previewPicture is null %}
- + clear {{ entry.title|raw }}
@@ -66,19 +69,25 @@

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

+ +
{% endif %}
{{ entry.domainName|removeWww|truncate(18) }} - + -
@@ -90,22 +99,27 @@
{% set currentRoute = app.request.attributes.get('_route') %} + {% set currentTag = '' %} + {% if tag is defined %} + {% set currentTag = tag %} + {% endif %} {% if currentRoute == 'homepage' %} {% set currentRoute = 'unread' %} {% endif %}

{{ 'entry.list.export_title'|trans }}

+ {% if form is not null %}
@@ -189,5 +203,6 @@
- {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %} + {% endif %} + {% endblock %}