wallabag/templates/Entry/_title.html.twig

22 lines
905 B
Twig
Raw Normal View History

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