aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-12-12 15:42:49 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2017-12-12 15:42:49 +0100
commit629f913b8dd7861c22f68ff337fd2e5f8b5ca83d (patch)
tree68377e740465fcaba96d6bb6c2b32bc969bd6e3f /src/Wallabag
parentf209798368de66b4acd8b892fe71018ebb30c2da (diff)
downloadwallabag-629f913b8dd7861c22f68ff337fd2e5f8b5ca83d.tar.gz
wallabag-629f913b8dd7861c22f68ff337fd2e5f8b5ca83d.tar.zst
wallabag-629f913b8dd7861c22f68ff337fd2e5f8b5ca83d.zip
Displayed the RSS icon on homepage route
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig
index 2bf9b2bd..eb26054c 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig
@@ -1,6 +1,11 @@
1{% if tag is defined %} 1{% if tag is defined %}
2 <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> 2 <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>
3{% elseif currentRoute in ['unread', 'starred', 'archive', 'all'] %} 3{% elseif currentRoute in ['homepage', 'unread', 'starred', 'archive', 'all'] %}
4 <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> 4 {% set rssRoute = currentRoute %}
5{% endif %} 5 {% if currentRoute == 'homepage' %}
6 {% set rssRoute = 'unread' %}
7 {% endif %}
8 {% set rssRoute = rssRoute ~ '_rss' %}
6 9
10 <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>
11{% endif %}