mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-15 09:57:41 +01:00
Displayed the RSS icon on homepage route
This commit is contained in:
parent
f209798368
commit
629f913b8d
@ -1,6 +1,11 @@
|
|||||||
{% if tag is defined %}
|
{% if tag is defined %}
|
||||||
<a rel="alternate" type="application/rss+xml" href="{{ path('tag_rss', {'username': app.user.username, 'token': app.user.config.rssToken, 'slug': tag.slug}) }}" class="right"><i class="material-icons md-24">rss_feed</i></a>
|
<a rel="alternate" type="application/rss+xml" href="{{ path('tag_rss', {'username': app.user.username, 'token': app.user.config.rssToken, 'slug': tag.slug}) }}" class="right"><i class="material-icons md-24">rss_feed</i></a>
|
||||||
{% elseif currentRoute in ['unread', 'starred', 'archive', 'all'] %}
|
{% elseif currentRoute in ['homepage', 'unread', 'starred', 'archive', 'all'] %}
|
||||||
<a rel="alternate" type="application/rss+xml" href="{{ path(currentRoute ~ '_rss', {'username': app.user.username, 'token': app.user.config.rssToken}) }}" class="right"><i class="material-icons">rss_feed</i></a>
|
{% set rssRoute = currentRoute %}
|
||||||
|
{% if currentRoute == 'homepage' %}
|
||||||
|
{% set rssRoute = 'unread' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% set rssRoute = rssRoute ~ '_rss' %}
|
||||||
|
|
||||||
|
<a rel="alternate" type="application/rss+xml" href="{{ path(rssRoute, {'username': app.user.username, 'token': app.user.config.rssToken}) }}" class="right"><i class="material-icons">rss_feed</i></a>
|
||||||
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user