debian-mirror-gitlab/app/views/shared/issuable/_feed_buttons.html.haml
2022-11-25 23:54:43 +05:30

8 lines
621 B
Text

- 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')