Commit 99ad081f authored by Jose Ivan Vargas's avatar Jose Ivan Vargas Committed by Peter Hegman

Migrate badges to be compliant with the Pajamas design system

Migrated badges in Project -> Settings -> CI/CD and 
Project -> Repository -> Tags -> Protected branch

Changelog: changed
parent 22b0b1d7
...@@ -13,8 +13,7 @@ ...@@ -13,8 +13,7 @@
= sprite_icon('tag') = sprite_icon('tag')
= @tag.name = @tag.name
- if protected_tag?(@project, @tag) - if protected_tag?(@project, @tag)
%span.badge.badge-success = gl_badge_tag s_('TagsPage|protected'), variant: :success
= s_('TagsPage|protected')
- if user - if user
= link_to user_path(user) do = link_to user_path(user) do
......
...@@ -28,8 +28,7 @@ ...@@ -28,8 +28,7 @@
%td= s_('Runners|Tags') %td= s_('Runners|Tags')
%td %td
- runner.tag_list.sort.each do |tag| - runner.tag_list.sort.each do |tag|
%span.badge.badge-primary = gl_badge_tag tag, variant: :info
= tag
%tr %tr
%td= s_('Runners|Name') %td= s_('Runners|Name')
%td= runner.name %td= runner.name
......
...@@ -113,14 +113,14 @@ RSpec.describe 'shared/runners/_runner_details.html.haml' do ...@@ -113,14 +113,14 @@ RSpec.describe 'shared/runners/_runner_details.html.haml' do
describe 'Tags value' do describe 'Tags value' do
context 'when runner does not have tags' do context 'when runner does not have tags' do
it { is_expected.to have_content('Tags') } it { is_expected.to have_content('Tags') }
it { is_expected.not_to have_selector('span.badge.badge-primary')} it { is_expected.not_to have_selector('span.gl-badge.badge.badge-info')}
end end
context 'when runner have tags' do context 'when runner have tags' do
let(:runner) { create(:ci_runner, tag_list: %w(tag2 tag3 tag1)) } let(:runner) { create(:ci_runner, tag_list: %w(tag2 tag3 tag1)) }
it { is_expected.to have_content('Tags tag1 tag2 tag3') } it { is_expected.to have_content('Tags tag1 tag2 tag3') }
it { is_expected.to have_selector('span.badge.badge-primary')} it { is_expected.to have_selector('span.gl-badge.badge.badge-info')}
end end
end end
......
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