- <a href="{{ path(currentRoute ~ '_random') }}">random</a>
- {% if app.user.config.rssToken %}
- {% include "@WallabagCore/themes/common/Entry/_rss_link.html.twig" %}
+ {% if app.user.config.feedToken %}
+ {% include "@WallabagCore/themes/common/Entry/_feed_link.html.twig" %}
+ {% endif %}
+ {% if currentRoute in ['unread', 'starred', 'archive', 'untagged', 'all'] %}
+ <a href="{{ path('random_entry', { 'type': currentRoute }) }}"><i class="btn-clickable material-icons md-24 js-random-action">casino</i></a>