Commit 123ef4cb authored by Kushal Pandya's avatar Kushal Pandya

Merge branch...

Merge branch '325369-migrate-to-shared-alert-haml-partial-in-app-views-projects-commits-_commits-html-haml' into 'master'

Migrate to shared alert HAML partial in _commits.html.haml

See merge request gitlab-org/gitlab!82956
parents 1386fea5 c0c49591
......@@ -34,10 +34,11 @@
= render partial: 'projects/commits/commit', collection: context_commits, locals: { project: project, ref: ref, merge_request: merge_request }
- if hidden > 0
%li.gl-alert.gl-alert-warning
.gl-alert-container
= sprite_icon('warning', size: 16, css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title')
.gl-alert-content
%li
= render 'shared/global_alert',
variant: :warning,
dismissible: false do
.gl-alert-body
= n_('%s additional commit has been omitted to prevent performance issues.', '%s additional commits have been omitted to prevent performance issues.', hidden) % number_with_delimiter(hidden)
- if can_update_merge_request && context_commits&.empty?
......
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