Commit 91238860 authored by Jacques's avatar Jacques

Migrate to shared alert component

Migrated the alert component to use the shared one
parent 2a4b6349
...@@ -10,14 +10,12 @@ ...@@ -10,14 +10,12 @@
%hr %hr
- if hook_log.internal_error_message.present? - if hook_log.internal_error_message.present?
.gl-alert-container = render 'shared/global_alert',
.gl-alert.gl-alert-danger title: _('Internal error occurred while delivering this webhook.'),
.gl-alert-container variant: :danger,
= sprite_icon('error', size: 16, css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title') dismissible: false do
.gl-alert-content .gl-alert-body
%h4.gl-alert-title= _('Internal error occurred while delivering this webhook.') = _('Error: %{error}') % { error: hook_log.internal_error_message }
.gl-alert-body
= _('Error: %{error}') % { error: hook_log.internal_error_message }
%h4= _('Response') %h4= _('Response')
= render partial: 'shared/hook_logs/status_label', locals: { hook_log: hook_log } = render partial: 'shared/hook_logs/status_label', locals: { hook_log: hook_log }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment