Commit c7da9ac4 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch...

Merge branch '344369-make-badges-in-app-views-groups-runners-_runner-html-haml-pajamas-compliant' into 'master'

Make badges in runners/_runner partial Pajamas-compliant

See merge request gitlab-org/gitlab!77399
parents 0d25e2f1 f8e41cd2
...@@ -3,17 +3,13 @@ ...@@ -3,17 +3,13 @@
.table-mobile-header{ role: 'rowheader' }= _('Type') .table-mobile-header{ role: 'rowheader' }= _('Type')
.table-mobile-content .table-mobile-content
- if runner.group_type? - if runner.group_type?
%span.badge.badge-pill.gl-badge.sm.badge-success = gl_badge_tag s_('Runners|group'), variant: :success, size: :sm
= s_('Runners|group')
- else - else
%span.badge.badge-pill.gl-badge.sm.badge-info = gl_badge_tag s_('Runners|specific'), variant: :info, size: :sm
= s_('Runners|specific')
- if runner.locked? - if runner.locked?
%span.badge.badge-pill.gl-badge.sm.badge-warning = gl_badge_tag s_('Runners|locked'), variant: :warning, size: :sm
= s_('Runners|locked')
- unless runner.active? - unless runner.active?
%span.badge.badge-pill.gl-badge.sm.badge-danger = gl_badge_tag s_('Runners|paused'), variant: :danger, size: :sm
= s_('Runners|paused')
.table-section.section-30 .table-section.section-30
.table-mobile-header{ role: 'rowheader' }= s_('Runners|Runner') .table-mobile-header{ role: 'rowheader' }= s_('Runners|Runner')
...@@ -50,8 +46,7 @@ ...@@ -50,8 +46,7 @@
.table-mobile-header{ role: 'rowheader' }= _('Tags') .table-mobile-header{ role: 'rowheader' }= _('Tags')
.table-mobile-content .table-mobile-content
- runner.tags.map(&:name).sort.each do |tag| - runner.tags.map(&:name).sort.each do |tag|
%span.badge.badge-primary.str-truncated.has-tooltip{ title: tag } = gl_badge_tag tag, { variant: :info }, { class: 'str-truncated has-tooltip', title: tag }
= tag
.table-section.section-10 .table-section.section-10
.table-mobile-header{ role: 'rowheader' }= _('Last contact') .table-mobile-header{ role: 'rowheader' }= _('Last contact')
......
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