aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig
blob: 5c17e9f7b78d5ced3f91807059e0c8f2b466b224 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% 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' %}
    {{ isFiltered ? 'entry.page_titles.filtered'|trans : 'entry.page_titles.all'|trans }}
{% elseif currentRoute == 'search' %}
    {{ 'entry.page_titles.filtered_search'|trans }} {{ filter }}
{% elseif currentRoute == 'tag_entries' %}
    {{ 'entry.page_titles.filtered_tags'|trans }} {{ filter }}
{% elseif currentRoute == 'untagged' %}
    {{ 'entry.page_titles.untagged'|trans }}
{% else %}
    {{ 'entry.page_titles.unread'|trans }}
{% endif %}