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
70a18ed2
Commit
70a18ed2
authored
Nov 14, 2018
by
Jacopo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes promote to group label for anonymous user
parent
bc72b2f1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
22 deletions
+28
-22
app/views/shared/_label.html.haml
app/views/shared/_label.html.haml
+23
-22
changelogs/unreleased/53816-empty-label-menu-if-not-logged-in.yml
...gs/unreleased/53816-empty-label-menu-if-not-logged-in.yml
+5
-0
No files found.
app/views/shared/_label.html.haml
View file @
70a18ed2
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
%li
.inline
%li
.inline
=
link_to
edit_label_path
(
label
),
class:
'btn btn-transparent label-action edit has-tooltip'
,
title:
_
(
'Edit'
),
data:
{
placement:
'bottom'
},
aria_label:
_
(
'Edit'
)
do
=
link_to
edit_label_path
(
label
),
class:
'btn btn-transparent label-action edit has-tooltip'
,
title:
_
(
'Edit'
),
data:
{
placement:
'bottom'
},
aria_label:
_
(
'Edit'
)
do
=
sprite_icon
(
'pencil'
)
=
sprite_icon
(
'pencil'
)
-
if
can?
(
current_user
,
:admin_label
,
label
)
%li
.inline
%li
.inline
.dropdown
.dropdown
%button
{
type:
'button'
,
class:
'btn btn-transparent js-label-options-dropdown label-action'
,
data:
{
toggle:
'dropdown'
},
aria_label:
_
(
'Label actions dropdown'
)
}
%button
{
type:
'button'
,
class:
'btn btn-transparent js-label-options-dropdown label-action'
,
data:
{
toggle:
'dropdown'
},
aria_label:
_
(
'Label actions dropdown'
)
}
...
...
changelogs/unreleased/53816-empty-label-menu-if-not-logged-in.yml
0 → 100644
View file @
70a18ed2
---
title
:
Removes promote to group label for anonymous user
merge_request
:
23042
author
:
Jacopo Beschi @jacopo-beschi
type
:
fixed
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