Commit 98865ef1 authored by Tim Zallmann's avatar Tim Zallmann

Replaced Edit + Lock Icons with SVG Icons

parent 7b23102e
......@@ -60,9 +60,9 @@ module SnippetsHelper
def snippet_badge(snippet)
return unless attrs = snippet_badge_attributes(snippet)
css_class, text = attrs
icon_name, text = attrs
tag.span(class: %w[badge badge-gray]) do
concat(tag.i(class: ['fa', css_class]))
concat(sprite_icon(icon_name, size: 14, css_class: 'vertical-align-middle'))
concat(' ')
concat(text)
end
......@@ -70,7 +70,7 @@ module SnippetsHelper
def snippet_badge_attributes(snippet)
if snippet.private?
['fa-lock', _('private')]
['lock', _('private')]
end
end
......
......@@ -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")
- 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
= link_to edit_project_runner_path(@project, runner) do
%i.fa.fa-edit.btn
= link_to edit_project_runner_path(@project, runner), class: 'btn btn-edit' do
= sprite_icon('pencil', size: 16)
- else
%span.commit-sha
= runner.short_sha
......
%li{ data: { qa_selector: 'locked_file_content' } }
%div
%span.item-title{ data: { qa_selector: 'locked_file_title_content' } }
= icon('lock')
= sprite_icon('lock', size: 14, css_class: 'gl-mr-1 vertical-align-middle')
= path_lock.path
.controls
......
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