diff options
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig | 11 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig | 10 |
2 files changed, 18 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 %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig index bd9eb0d7..e134abcd 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig | |||
@@ -97,6 +97,15 @@ | |||
97 | <div class="collapsible-body"></div> | 97 | <div class="collapsible-body"></div> |
98 | </li> | 98 | </li> |
99 | 99 | ||
100 | {% if craue_setting('share_public') | ||
101 | or craue_setting('share_twitter') | ||
102 | or craue_setting('share_shaarli') | ||
103 | or craue_setting('share_scuttle') | ||
104 | or craue_setting('share_diaspora') | ||
105 | or craue_setting('share_unmark') | ||
106 | or craue_setting('carrot') | ||
107 | or craue_setting('share_mail') | ||
108 | %} | ||
100 | <li class="bold"> | 109 | <li class="bold"> |
101 | <a class="waves-effect collapsible-header"> | 110 | <a class="waves-effect collapsible-header"> |
102 | <i class="material-icons small">share</i> | 111 | <i class="material-icons small">share</i> |
@@ -169,6 +178,7 @@ | |||
169 | </ul> | 178 | </ul> |
170 | </div> | 179 | </div> |
171 | </li> | 180 | </li> |
181 | {% endif %} | ||
172 | 182 | ||
173 | {% if craue_setting('show_printlink') %} | 183 | {% if craue_setting('show_printlink') %} |
174 | <li class="bold border-bottom hide-on-med-and-down"> | 184 | <li class="bold border-bottom hide-on-med-and-down"> |