aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-06-20 18:29:46 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-21 12:02:04 +0200
commitbd40f1af88979cb5257206d178d26819e350a24c (patch)
tree0e67b949bde3bf8c441bfa77cbf9aa0a49326f72 /src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig
parentebf2d9232798111ea4762f1d8b1cc05533238eb2 (diff)
downloadwallabag-bd40f1af88979cb5257206d178d26819e350a24c.tar.gz
wallabag-bd40f1af88979cb5257206d178d26819e350a24c.tar.zst
wallabag-bd40f1af88979cb5257206d178d26819e350a24c.zip
Add all entries RSS feed and put links on tag page itself and baggy too
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig6
1 files changed, 6 insertions, 0 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
new file mode 100644
index 00000000..2bf9b2bd
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig
@@ -0,0 +1,6 @@
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>
3{% elseif currentRoute in ['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>
5{% endif %}
6