wallabag/templates/Entry/_title.html.twig

22 lines
905 B
Twig
Raw Normal View History

2022-05-03 23:28:20 +02:00
{% set current_route = app.request.attributes.get('_route') %}
2016-08-26 21:26:21 +02:00
2022-05-03 23:28:20 +02:00
{% if current_route == 'starred' %}
2016-08-26 21:26:21 +02:00
{{ 'entry.page_titles.starred'|trans }}
2022-05-03 23:28:20 +02:00
{% elseif current_route == 'archive' %}
2016-08-26 21:26:21 +02:00
{{ 'entry.page_titles.archived'|trans }}
2022-05-03 23:28:20 +02:00
{% elseif current_route == 'all' %}
{{ isFiltered ? 'entry.page_titles.filtered'|trans : 'entry.page_titles.all'|trans }}
2022-05-03 23:28:20 +02:00
{% elseif current_route == 'search' %}
2016-11-04 23:24:43 +01:00
{{ 'entry.page_titles.filtered_search'|trans }} {{ filter }}
2022-05-03 23:28:20 +02:00
{% elseif current_route == 'tag_entries' %}
2016-11-04 23:24:43 +01:00
{{ 'entry.page_titles.filtered_tags'|trans }} {{ filter }}
2022-05-03 23:28:20 +02:00
{% elseif current_route == 'untagged' %}
2016-08-26 16:55:41 +02:00
{{ 'entry.page_titles.untagged'|trans }}
2022-05-03 23:28:20 +02:00
{% elseif current_route == 'same_domain' %}
{{ 'entry.page_titles.same_domain'|trans }}
2022-05-03 23:28:20 +02:00
{% elseif current_route == 'annotated' %}
{{ 'entry.page_titles.with_annotations'|trans }}
2016-08-26 21:26:21 +02:00
{% else %}
{{ 'entry.page_titles.unread'|trans }}
{% endif %}