Commit 64fea52b authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ph/354586/lastPushGlobalAlert' into 'master'

Migrate last push alert to use global_alert partial

See merge request gitlab-org/gitlab!82825
parents 0d9b1b4a e48e8b60
- event = last_push_event - event = last_push_event
- if event && show_last_push_widget?(event) - if event && show_last_push_widget?(event)
.gl-alert.gl-alert-success.mt-2{ role: 'alert' } = render 'shared/global_alert',
= sprite_icon('check-circle', size: 16, css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title') variant: :success,
%button.js-close-banner.gl-alert-dismiss{ type: 'button', 'aria-label' => _('Dismiss') } alert_class: 'gl-mt-3',
= sprite_icon('close', size: 16, css_class: 'gl-icon') close_button_class: 'js-close-banner' do
.gl-alert-body .gl-alert-body
%span= s_("LastPushEvent|You pushed to") %span= s_("LastPushEvent|You pushed to")
%strong.gl-display-inline-flex.gl-max-w-50p{ data: { toggle: 'tooltip' }, title: event.ref_name } %strong.gl-display-inline-flex.gl-max-w-50p{ data: { toggle: 'tooltip' }, title: event.ref_name }
......
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