diff options
Diffstat (limited to 'app/views/shared/issuable/_feed_buttons.html.haml')
-rw-r--r-- | app/views/shared/issuable/_feed_buttons.html.haml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/app/views/shared/issuable/_feed_buttons.html.haml b/app/views/shared/issuable/_feed_buttons.html.haml index 94b7fe14721..1a9bbac6f05 100644 --- a/app/views/shared/issuable/_feed_buttons.html.haml +++ b/app/views/shared/issuable/_feed_buttons.html.haml @@ -1,8 +1,10 @@ - show_calendar_button = local_assigns.fetch(:show_calendar_button, true) -= render Pajamas::ButtonComponent.new(href: safe_params.merge(rss_url_options), icon: 'rss', button_options: { class: 'has-tooltip', 'aria-label': _('Subscribe to RSS feed'), data: { container: 'body', testid: 'rss-feed-link' } }) do - = _('Subscribe to RSS feed') - - if show_calendar_button - = render Pajamas::ButtonComponent.new(href: safe_params.merge(calendar_url_options), icon: 'calendar', button_options: { class: 'has-tooltip', 'aria-label': _('Subscribe to calendar'), data: { container: 'body' } }) do - = _('Subscribe to calendar') + = link_to safe_params.merge(calendar_url_options), class: 'dropdown-item' do + .gl-dropdown-item-text-wrapper + = _("Subscribe to calendar") + += link_to safe_params.merge(rss_url_options), class: 'dropdown-item' do + .gl-dropdown-item-text-wrapper + = _("Subscribe to RSS feed") |