2020-07-28 23:09:34 +05:30
|
|
|
- return unless can?(current_user, :admin_operations, @project)
|
|
|
|
- expanded = expanded_by_default?
|
2021-01-29 00:20:46 +05:30
|
|
|
- add_page_specific_style 'page_bundles/alert_management_settings'
|
2021-03-08 18:12:59 +05:30
|
|
|
- add_page_specific_style 'page_bundles/incident_management_list'
|
2020-07-28 23:09:34 +05:30
|
|
|
|
|
|
|
%section.settings.no-animate#js-alert-management-settings{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
2021-04-29 21:17:54 +05:30
|
|
|
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
|
2021-09-04 01:27:46 +05:30
|
|
|
= _('Alerts')
|
2022-07-23 23:45:48 +05:30
|
|
|
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
|
2020-07-28 23:09:34 +05:30
|
|
|
= _('Expand')
|
|
|
|
%p
|
2021-04-29 21:17:54 +05:30
|
|
|
= _('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-07-28 23:09:34 +05:30
|
|
|
.settings-content
|
|
|
|
.js-alerts-settings{ data: alerts_settings_data }
|