2017-06-13 18:48:10 +02:00
|
|
|
{% if tag is defined %}
|
2023-05-25 20:57:14 +02:00
|
|
|
{% set feed_route = 'tag_feed' %}
|
|
|
|
{% set slug = tag.slug %}
|
2022-05-03 23:28:20 +02:00
|
|
|
{% elseif current_route in ['homepage', 'unread', 'starred', 'archive', 'all'] %}
|
|
|
|
{% set feed_route = current_route %}
|
|
|
|
{% if current_route == 'homepage' %}
|
|
|
|
{% set feed_route = 'unread' %}
|
2017-06-13 18:48:10 +02:00
|
|
|
{% endif %}
|
2022-05-03 23:28:20 +02:00
|
|
|
{% set feed_route = feed_route ~ '_feed' %}
|
2023-05-25 20:57:14 +02:00
|
|
|
{% set slug = null %}
|
2017-06-13 18:48:10 +02:00
|
|
|
{% endif %}
|
2023-06-26 17:41:55 +02:00
|
|
|
{% if feed_route is defined %}
|
2023-06-12 19:05:38 +02:00
|
|
|
<a rel="alternate" type="application/atom+xml" href="{{ path(feed_route, {'username': app.user.username, 'token': app.user.config.feedToken, 'slug': slug}) }}" class="results-item"><i class="material-icons">rss_feed</i></a>
|
|
|
|
{% endif %}
|