aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig
blob: d93e5a674077230fdea0a99dc0ecb67d1c8b359b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% 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 }}
{% elseif currentRoute == 'with_annotations' %}
    {{ 'entry.page_titles.with_annotations'|trans }}
{% else %}
    {{ 'entry.page_titles.unread'|trans }}
{% endif %}