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=5a619812ca3eb05a82a023ccdaee13501eb8d45f;hp=2a972e1cf17edb9707b572a03611b6a5a239439e;hpb=371bcca0f6b18951a15e56daae5bca2558c01851;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 2a972e1c..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,19 +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 }} - {% elseif currentRoute == 'tag_entries' %} - {{ 'entry.page_titles.filtered_tags'|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 %} @@ -29,7 +21,7 @@
@@ -41,7 +33,7 @@ more_vert {% endif %} - {{ entry.title|striptags|raw }} + {{ entry.title|striptags|raw }}
@@ -58,7 +50,7 @@

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

{% endif %} @@ -78,9 +70,9 @@

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

-
@@ -89,7 +81,7 @@
{{ entry.domainName|removeWww|truncate(18) }} - +