aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_title.html.twig
blob: ffb070cbdbea8b16a4f636b498cb38276009ba0f (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 == 'annotated' %}
    {{ 'entry.page_titles.with_annotations'|trans }}
{% else %}
    {{ 'entry.page_titles.unread'|trans }}
{% endif %}