2020-06-26 11:08:45 -04:00
|
|
|
- return unless can?(current_user, :admin_operations, @project)
|
2020-07-13 11:09:08 -04:00
|
|
|
- expanded = expanded_by_default?
|
2020-11-06 07:09:17 -05:00
|
|
|
- add_page_specific_style 'page_bundles/alert_management_settings'
|
2021-01-06 07:10:58 -05:00
|
|
|
- add_page_specific_style 'page_bundles/incident_management_list'
|
2020-06-26 11:08:45 -04:00
|
|
|
|
2020-07-13 11:09:08 -04:00
|
|
|
%section.settings.no-animate#js-alert-management-settings{ class: ('expanded' if expanded) }
|
2020-06-26 11:08:45 -04:00
|
|
|
.settings-header
|
2021-03-16 14:11:53 -04:00
|
|
|
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
|
2021-05-21 08:10:27 -04:00
|
|
|
= _('Alerts')
|
2022-06-10 17:09:35 -04:00
|
|
|
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
|
2020-06-26 11:08:45 -04:00
|
|
|
= _('Expand')
|
|
|
|
%p
|
2021-04-08 11:09:06 -04:00
|
|
|
= _('Display alerts from all configured monitoring tools.')
|
|
|
|
= link_to _('Learn more.'), help_page_path('operations/incident_management/integrations.md'), target: '_blank', rel: 'noopener noreferrer'
|
2020-06-26 11:08:45 -04:00
|
|
|
.settings-content
|
2020-07-02 17:09:14 -04:00
|
|
|
.js-alerts-settings{ data: alerts_settings_data }
|