X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=5fca53aef5b49059a8444f42afcac3711b33cbbc;hb=a3477df5c93bc3d27baac08410a716fa6e92309f;hp=813e80cb4e105b9db67e60c2b3cfc0904ceae842;hpb=72ea6dd1a78d9fd0d7531916819489fd31eb17d7;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 813e80cb..5fca53ae 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,105 +1,164 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} {% block title %} - {% set currentRoute = app.request.attributes.get('_route') %} - - {% if currentRoute == 'starred' %} - {% trans %}Starred{% endtrans %} - {% elseif currentRoute == 'archive' %} - {% trans %}Archive{% endtrans %} - {% else %} - {% trans %}Unread{% endtrans %} - {% endif %} - + {% set filter = '' %} + {% if tag is defined %} + {% set filter = tag %} + {% endif %} + {% if searchTerm is defined and searchTerm is not empty %} + {% set filter = searchTerm %} + {% endif %} + {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'filter': filter} %} {% endblock %} {% block content %} - {% block pager %} + {% set listMode = app.user.config.listMode %}
{{ entry.content|striptags|slice(0, 300) }}...
-