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 ...@@ -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: '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 vertical-align-middle')
= path_lock.path = path_lock.path
.controls .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