From: Nicolas LÅ“uillet Date: Tue, 12 Dec 2017 19:20:52 +0000 (+0100) Subject: Merge pull request #3490 from wallabag/fix-rss-unread-icon X-Git-Tag: 2.3.1~17 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=71318d6103e95fbe1103a71770da1dd9abbaaeb1;hp=1f198256edd057abe110687e5049c0a904eb3c17;p=github%2Fwallabag%2Fwallabag.git Merge pull request #3490 from wallabag/fix-rss-unread-icon Displayed the RSS icon on homepage route --- 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 @@ {% if tag is defined %} rss_feed -{% elseif currentRoute in ['unread', 'starred', 'archive', 'all'] %} - rss_feed -{% endif %} +{% elseif currentRoute in ['homepage', 'unread', 'starred', 'archive', 'all'] %} + {% set rssRoute = currentRoute %} + {% if currentRoute == 'homepage' %} + {% set rssRoute = 'unread' %} + {% endif %} + {% set rssRoute = rssRoute ~ '_rss' %} + rss_feed +{% endif %}