X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=c3fd4d286d46510469a90aac198e7ceed2734953;hb=f37c9c3348c411cd1a4913b393f363c65a73a62d;hp=f68eec12a4ec67c378c114a228d7f8e00e94b00d;hpb=53e121881b78bad3475aa92f2f33be231b441c2f;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 f68eec12..c3fd4d28 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,197 @@ {% 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 }}…