X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=9380e67afbf38ba548a6014bb00946be39898107;hb=c4da9d1cd8df4a9efdb3150396432680d93f6e5a;hp=778625ae0338742cc32ebf955c36903ea1643e06;hpb=733b2cf19b5d5a93617f24b2447b9a30ba22d303;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig index 778625ae..9380e67a 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig @@ -1,6 +1,20 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title %}{{ 'entry.page_titles.unread'|trans }}{% endblock %} +{% 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 %} +{% endblock %} {% block content %} {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %} @@ -28,12 +42,43 @@ {% if entry.previewPicture is null %}

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

+ {% else %} + {{ entry.title|raw }} {% endif %} {% endfor %} + + + + + {% if form is not null %} - - {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %} + {% endif %} {% endblock %}