Commit 5663d250 authored by Justin Ho's avatar Justin Ho

Remove unused param in visibility_level_icon

Not needed with new GitLab SVG icons
parent 86c8d5a1
...@@ -98,7 +98,7 @@ module IconsHelper ...@@ -98,7 +98,7 @@ module IconsHelper
end end
end end
def visibility_level_icon(level, fw: true, options: {}) def visibility_level_icon(level, options: {})
name = name =
case level case level
when Gitlab::VisibilityLevel::PRIVATE when Gitlab::VisibilityLevel::PRIVATE
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
= number_with_delimiter(group.users.count) = number_with_delimiter(group.users.count)
%span.gl-ml-5.visibility-icon.has-tooltip{ data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group) } %span.gl-ml-5.visibility-icon.has-tooltip{ data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group) }
= visibility_level_icon(group.visibility_level, fw: false) = visibility_level_icon(group.visibility_level)
.controls.gl-flex-shrink-0.gl-ml-5 .controls.gl-flex-shrink-0.gl-ml-5
= link_to _('Edit'), admin_group_edit_path(group), id: "edit_#{dom_id(group)}", class: 'btn' = link_to _('Edit'), admin_group_edit_path(group), id: "edit_#{dom_id(group)}", class: 'btn'
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
%h1.home-panel-title.gl-mt-3.gl-mb-2 %h1.home-panel-title.gl-mt-3.gl-mb-2
= @group.name = @group.name
%span.visibility-icon.text-secondary.gl-ml-2.has-tooltip{ data: { container: 'body' }, title: visibility_icon_description(@group) } %span.visibility-icon.text-secondary.gl-ml-2.has-tooltip{ data: { container: 'body' }, title: visibility_icon_description(@group) }
= visibility_level_icon(@group.visibility_level, fw: false, options: {class: 'icon'}) = visibility_level_icon(@group.visibility_level, options: {class: 'icon'})
.home-panel-metadata.d-flex.align-items-center.text-secondary .home-panel-metadata.d-flex.align-items-center.text-secondary
%span %span
= _("Group ID: %{group_id}") % { group_id: @group.id } = _("Group ID: %{group_id}") % { group_id: @group.id }
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
%h1.home-panel-title.gl-mt-3.gl-mb-2{ data: { qa_selector: 'project_name_content' } } %h1.home-panel-title.gl-mt-3.gl-mb-2{ data: { qa_selector: 'project_name_content' } }
= @project.name = @project.name
%span.visibility-icon.text-secondary.gl-ml-2.has-tooltip{ data: { container: 'body' }, title: visibility_icon_description(@project) } %span.visibility-icon.text-secondary.gl-ml-2.has-tooltip{ data: { container: 'body' }, title: visibility_icon_description(@project) }
= visibility_level_icon(@project.visibility_level, fw: false, options: {class: 'icon'}) = visibility_level_icon(@project.visibility_level, options: {class: 'icon'})
= render_if_exists 'compliance_management/compliance_framework/compliance_framework_badge', project: @project = render_if_exists 'compliance_management/compliance_framework/compliance_framework_badge', project: @project
.home-panel-metadata.d-flex.flex-wrap.text-secondary .home-panel-metadata.d-flex.flex-wrap.text-secondary
- if can?(current_user, :read_project, @project) - if can?(current_user, :read_project, @project)
......
...@@ -26,4 +26,4 @@ ...@@ -26,4 +26,4 @@
= number_with_delimiter(group.users.count) = number_with_delimiter(group.users.count)
%span.gl-ml-5.visibility-icon.has-tooltip{ data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group) } %span.gl-ml-5.visibility-icon.has-tooltip{ data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group) }
= visibility_level_icon(group.visibility_level, fw: false) = visibility_level_icon(group.visibility_level)
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
= project.name = project.name
%span.metadata-info.visibility-icon.gl-mr-3.gl-mt-3.text-secondary.has-tooltip{ data: { container: 'body', placement: 'top' }, title: visibility_icon_description(project) } %span.metadata-info.visibility-icon.gl-mr-3.gl-mt-3.text-secondary.has-tooltip{ data: { container: 'body', placement: 'top' }, title: visibility_icon_description(project) }
= visibility_level_icon(project.visibility_level, fw: true) = visibility_level_icon(project.visibility_level)
- if explore_projects_tab? && project_license_name(project) - if explore_projects_tab? && project_license_name(project)
%span.metadata-info.d-inline-flex.align-items-center.gl-mr-3.gl-mt-3 %span.metadata-info.d-inline-flex.align-items-center.gl-mr-3.gl-mt-3
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.snippet-box.has-tooltip.inline.gl-mr-2{ title: snippet_visibility_level_description(@snippet.visibility_level, @snippet), data: { container: "body" } } .snippet-box.has-tooltip.inline.gl-mr-2{ title: snippet_visibility_level_description(@snippet.visibility_level, @snippet), data: { container: "body" } }
%span.sr-only %span.sr-only
= visibility_level_label(@snippet.visibility_level) = visibility_level_label(@snippet.visibility_level)
= visibility_level_icon(@snippet.visibility_level, fw: false) = visibility_level_icon(@snippet.visibility_level)
%span.creator %span.creator
Authored Authored
= time_ago_with_tooltip(@snippet.created_at, placement: 'bottom', html_class: 'snippet_updated_ago') = time_ago_with_tooltip(@snippet.created_at, placement: 'bottom', html_class: 'snippet_updated_ago')
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
%li %li
%span.sr-only %span.sr-only
= visibility_level_label(snippet.visibility_level) = visibility_level_label(snippet.visibility_level)
= visibility_level_icon(snippet.visibility_level, fw: false) = visibility_level_icon(snippet.visibility_level)
.snippet-info .snippet-info
#{snippet.to_reference} · #{snippet.to_reference} ·
......
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