X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=371992df41aad59aea17aebf337e06f475c52559;hb=bca5485946a72942c76dbb65c29e40818dca4976;hp=5ef5125f1d35772ff279430291af2077be0781ff;hpb=b17874a7d58e1ae853935a564b205566efd9ed74;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 5ef5125f..371992df 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,53 +1,198 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title "Unread" %} +{% block title %} + {% set currentRoute = app.request.attributes.get('_route') %} + + {% if currentRoute == 'starred' %} + {% trans %}starred{% endtrans %} + {% elseif currentRoute == 'archive' %} + {% trans %}archive{% endtrans %} + {% elseif currentRoute == 'all' %} + {% trans %}Filtered{% endtrans %} + {% else %} + {% trans %}unread{% endtrans %} + {% endif %} + +{% endblock %} {% block content %} {% block pager %} - {% if entries is not empty %} -
{{ entry.content|striptags|slice(0, 300)|raw }}…
{% endif %} -{{ entry.content|striptags|slice(0, 300) }}...
{{ entry.content|striptags|slice(0, 300)|raw }}…