From 629f913b8dd7861c22f68ff337fd2e5f8b5ca83d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 12 Dec 2017 15:42:49 +0100 Subject: [PATCH] Displayed the RSS icon on homepage route --- .../views/themes/common/Entry/_rss_link.html.twig | 11 ++++++++--- 1 file 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 2bf9b2bd7..eb26054cb 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 %}