Commit a7169d4b authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch '225904-replace-fa-edit-icons-with-gitlab-svg-pencil-icon' into 'master'

Replace fa-edit + fa-lock icons with GitLab SVG pencil, lock icon

Closes #225896 and #225904

See merge request gitlab-org/gitlab!38456
parents 07e28909 2c64edb2
...@@ -247,10 +247,6 @@ ...@@ -247,10 +247,6 @@
content: '\f187'; content: '\f187';
} }
.fa-lock::before {
content: '\f023';
}
.fa-sign-out::before { .fa-sign-out::before {
content: '\f08b'; content: '\f08b';
} }
...@@ -315,10 +311,6 @@ ...@@ -315,10 +311,6 @@
content: '\f1b3'; content: '\f1b3';
} }
.fa-edit::before {
content: '\f044';
}
.fa-times-circle::before { .fa-times-circle::before {
content: '\f057'; content: '\f057';
} }
......
...@@ -60,9 +60,9 @@ module SnippetsHelper ...@@ -60,9 +60,9 @@ module SnippetsHelper
def snippet_badge(snippet) def snippet_badge(snippet)
return unless attrs = snippet_badge_attributes(snippet) return unless attrs = snippet_badge_attributes(snippet)
css_class, text = attrs icon_name, text = attrs
tag.span(class: %w[badge badge-gray]) do tag.span(class: %w[badge badge-gray]) do
concat(tag.i(class: ['fa', css_class])) concat(sprite_icon(icon_name, size: 14, css_class: 'gl-vertical-align-middle'))
concat(' ') concat(' ')
concat(text) concat(text)
end end
...@@ -70,7 +70,7 @@ module SnippetsHelper ...@@ -70,7 +70,7 @@ module SnippetsHelper
def snippet_badge_attributes(snippet) def snippet_badge_attributes(snippet)
if snippet.private? if snippet.private?
['fa-lock', _('private')] ['lock', _('private')]
end end
end end
......
...@@ -6,11 +6,12 @@ ...@@ -6,11 +6,12 @@
= link_to _("%{token}...") % { token: runner.short_sha }, project_runner_path(@project, runner), class: 'commit-sha has-tooltip', title: _("Partial token for reference only") = link_to _("%{token}...") % { token: runner.short_sha }, project_runner_path(@project, runner), class: 'commit-sha has-tooltip', title: _("Partial token for reference only")
- if runner.locked? - if runner.locked?
= icon('lock', class: 'has-tooltip', title: _('Locked to current projects')) %span.has-tooltip{ title: _('Locked to current projects') }
= sprite_icon('lock', size: 16)
%small.edit-runner %small.edit-runner
= link_to edit_project_runner_path(@project, runner) do = link_to edit_project_runner_path(@project, runner), class: 'btn btn-edit' do
%i.fa.fa-edit.btn = sprite_icon('pencil', size: 16)
- else - else
%span.commit-sha %span.commit-sha
= runner.short_sha = runner.short_sha
......
%li{ data: { qa_selector: 'locked_file_content' } } %li{ data: { qa_selector: 'locked_file_content' } }
%div %div
%span.item-title{ data: { qa_selector: 'locked_file_title_content' } } %span.item-title{ data: { qa_selector: 'locked_file_title_content' } }
= icon('lock') = sprite_icon('lock', size: 14, css_class: 'gl-mr-1 gl-vertical-align-middle')
= path_lock.path = path_lock.path
.controls .controls
......
...@@ -122,7 +122,7 @@ RSpec.describe SnippetsHelper do ...@@ -122,7 +122,7 @@ RSpec.describe SnippetsHelper do
let(:visibility) { :private } let(:visibility) { :private }
it 'returns the snippet badge' do it 'returns the snippet badge' do
expect(subject).to eq "<span class=\"badge badge-gray\"><i class=\"fa fa-lock\"></i> private</span>" expect(subject).to eq "<span class=\"badge badge-gray\">#{sprite_icon('lock', size: 14, css_class: 'gl-vertical-align-middle')} private</span>"
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