mirror of
https://github.com/wallabag/wallabag.git
synced 2024-05-05 10:58:45 +00:00
1d3935fbd3
As baggy theme was removed and material is the only remaining theme, we don't need a theme switched anymore. So: - move all `*.twig` files from the material theme folder to the root - remove useless translations
12 lines
743 B
Twig
12 lines
743 B
Twig
{% if tag is defined %}
|
|
<a rel="alternate" type="application/atom+xml" href="{{ path('tag_feed', {'username': app.user.username, 'token': app.user.config.feedToken, 'slug': tag.slug}) }}" class="right"><i class="material-icons md-24">rss_feed</i></a>
|
|
{% elseif current_route in ['homepage', 'unread', 'starred', 'archive', 'all'] %}
|
|
{% set feed_route = current_route %}
|
|
{% if current_route == 'homepage' %}
|
|
{% set feed_route = 'unread' %}
|
|
{% endif %}
|
|
{% set feed_route = feed_route ~ '_feed' %}
|
|
|
|
<a rel="alternate" type="application/atom+xml" href="{{ path(feed_route, {'username': app.user.username, 'token': app.user.config.feedToken}) }}" class="right"><i class="material-icons">rss_feed</i></a>
|
|
{% endif %}
|