X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=498234b99eb3fe4d17585e33680fa3106c11839c;hb=d61b24e4590bd83a8f8c1e83b95f6e978c9b7e24;hp=2c145b2a4d4cdbd588e863b6a000edddad404408;hpb=817724a7b8507877a81f3ff53639f7b49cb05851;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 2c145b2a..498234b9 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,7 +1,11 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} {% block title %} - {% include "@WallabagCore/themes/common/Entry/_title.html.twig" %} + {% set currentTag = '' %} + {% if tag is defined %} + {% set currentTag = tag %} + {% endif %} + {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %} {% endblock %} {% block content %} @@ -37,16 +41,16 @@ more_vert {% endif %} - {{ entry.title|striptags|raw }} + {{ entry.title| striptags | truncate(80, true, '…') | raw }}
- - {{ entry.domainName|removeWww|truncate(18) }} + + {{ entry.domainName|removeWww }}
{% if entry.previewPicture is null %} -

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

+

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