Commit aeab12c9 authored by Dave Pisek's avatar Dave Pisek

Migrate auto-devops setting to GlBadge abstraction

This commit changes an instance of a badge from using manual
classes to the helper.

Changelog: changed
MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/76416
parent f92d82e3
......@@ -23,7 +23,7 @@
= form.label :enabled, class: 'form-check-label' do
%strong= s_('CICD|Default to Auto DevOps pipeline')
- if auto_devops_enabled
%span.badge.badge-info.js-instance-default-badge= badge_for_auto_devops_scope(@project)
= gl_badge_tag badge_for_auto_devops_scope(@project), { variant: :info }, { class: 'js-instance-default-badge'}
.form-text.text-muted
= s_('CICD|The Auto DevOps pipeline runs if no alternative CI configuration file is found.')
= link_to _('Learn more.'), help_page_path('topics/autodevops/index.md'), target: '_blank'
......
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