From: Nicolas LÅ“uillet Date: Tue, 12 Dec 2017 14:42:49 +0000 (+0100) Subject: Displayed the RSS icon on homepage route X-Git-Tag: 2.3.1~17^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=refs%2Fpull%2F3490%2Fhead;hp=f209798368de66b4acd8b892fe71018ebb30c2da;p=github%2Fwallabag%2Fwallabag.git 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 %}