aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-12-12 20:20:52 +0100
committerGitHub <noreply@github.com>2017-12-12 20:20:52 +0100
commit71318d6103e95fbe1103a71770da1dd9abbaaeb1 (patch)
tree83629ff0d6cd3addf9478e72a8cf78ccb0d46392 /src
parent1f198256edd057abe110687e5049c0a904eb3c17 (diff)
parent629f913b8dd7861c22f68ff337fd2e5f8b5ca83d (diff)
downloadwallabag-71318d6103e95fbe1103a71770da1dd9abbaaeb1.tar.gz
wallabag-71318d6103e95fbe1103a71770da1dd9abbaaeb1.tar.zst
wallabag-71318d6103e95fbe1103a71770da1dd9abbaaeb1.zip
Merge pull request #3490 from wallabag/fix-rss-unread-icon
Displayed the RSS icon on homepage route
Diffstat (limited to 'src')
-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 %}