summaryrefslogtreecommitdiff
path: root/app/views/shared/issuable/_feed_buttons.html.haml
blob: 94b7fe147210c4e1071c59664f0a379c48602da9 (plain)
1
2
3
4
5
6
7
8
- 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')