Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5663d250
Commit
5663d250
authored
Jul 17, 2020
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused param in visibility_level_icon
Not needed with new GitLab SVG icons
parent
86c8d5a1
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
app/helpers/icons_helper.rb
app/helpers/icons_helper.rb
+1
-1
app/views/admin/groups/_group.html.haml
app/views/admin/groups/_group.html.haml
+1
-1
app/views/groups/_home_panel.html.haml
app/views/groups/_home_panel.html.haml
+1
-1
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+1
-1
app/views/shared/groups/_group.html.haml
app/views/shared/groups/_group.html.haml
+1
-1
app/views/shared/projects/_project.html.haml
app/views/shared/projects/_project.html.haml
+1
-1
app/views/shared/snippets/_header.html.haml
app/views/shared/snippets/_header.html.haml
+1
-1
app/views/shared/snippets/_snippet.html.haml
app/views/shared/snippets/_snippet.html.haml
+1
-1
No files found.
app/helpers/icons_helper.rb
View file @
5663d250
...
...
@@ -98,7 +98,7 @@ module IconsHelper
end
end
def
visibility_level_icon
(
level
,
fw:
true
,
options:
{})
def
visibility_level_icon
(
level
,
options:
{})
name
=
case
level
when
Gitlab
::
VisibilityLevel
::
PRIVATE
...
...
app/views/admin/groups/_group.html.haml
View file @
5663d250
...
...
@@ -30,7 +30,7 @@
=
number_with_delimiter
(
group
.
users
.
count
)
%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
=
link_to
_
(
'Edit'
),
admin_group_edit_path
(
group
),
id:
"edit_
#{
dom_id
(
group
)
}
"
,
class:
'btn'
...
...
app/views/groups/_home_panel.html.haml
View file @
5663d250
...
...
@@ -12,7 +12,7 @@
%h1
.home-panel-title.gl-mt-3.gl-mb-2
=
@group
.
name
%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
%span
=
_
(
"Group ID: %{group_id}"
)
%
{
group_id:
@group
.
id
}
...
...
app/views/projects/_home_panel.html.haml
View file @
5663d250
...
...
@@ -13,7 +13,7 @@
%h1
.home-panel-title.gl-mt-3.gl-mb-2
{
data:
{
qa_selector:
'project_name_content'
}
}
=
@project
.
name
%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
.home-panel-metadata.d-flex.flex-wrap.text-secondary
-
if
can?
(
current_user
,
:read_project
,
@project
)
...
...
app/views/shared/groups/_group.html.haml
View file @
5663d250
...
...
@@ -26,4 +26,4 @@
=
number_with_delimiter
(
group
.
users
.
count
)
%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
)
app/views/shared/projects/_project.html.haml
View file @
5663d250
...
...
@@ -40,7 +40,7 @@
=
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
)
}
=
visibility_level_icon
(
project
.
visibility_level
,
fw:
true
)
=
visibility_level_icon
(
project
.
visibility_level
)
-
if
explore_projects_tab?
&&
project_license_name
(
project
)
%span
.metadata-info.d-inline-flex.align-items-center.gl-mr-3.gl-mt-3
...
...
app/views/shared/snippets/_header.html.haml
View file @
5663d250
...
...
@@ -3,7 +3,7 @@
.snippet-box.has-tooltip.inline.gl-mr-2
{
title:
snippet_visibility_level_description
(
@snippet
.
visibility_level
,
@snippet
),
data:
{
container:
"body"
}
}
%span
.sr-only
=
visibility_level_label
(
@snippet
.
visibility_level
)
=
visibility_level_icon
(
@snippet
.
visibility_level
,
fw:
false
)
=
visibility_level_icon
(
@snippet
.
visibility_level
)
%span
.creator
Authored
=
time_ago_with_tooltip
(
@snippet
.
created_at
,
placement:
'bottom'
,
html_class:
'snippet_updated_ago'
)
...
...
app/views/shared/snippets/_snippet.html.haml
View file @
5663d250
...
...
@@ -16,7 +16,7 @@
%li
%span
.sr-only
=
visibility_level_label
(
snippet
.
visibility_level
)
=
visibility_level_icon
(
snippet
.
visibility_level
,
fw:
false
)
=
visibility_level_icon
(
snippet
.
visibility_level
)
.snippet-info
#{
snippet
.
to_reference
}
·
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment