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
9eb1efd7
Commit
9eb1efd7
authored
Feb 05, 2021
by
Yogi
Committed by
Yogi
Mar 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update labels button
parent
5e49187a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/views/shared/_label.html.haml
app/views/shared/_label.html.haml
+4
-4
No files found.
app/views/shared/_label.html.haml
View file @
9eb1efd7
...
...
@@ -12,18 +12,18 @@
-
if
can?
(
current_user
,
:admin_label
,
@project
)
%li
.inline.js-toggle-priority
{
data:
{
url:
remove_priority_project_label_path
(
@project
,
label
),
dom_id:
dom_id
(
label
),
type:
label
.
type
}
}
%button
.label-action.add-priority.btn.
btn-transparent.has-tooltip
{
title:
_
(
'Prioritize'
),
type:
'button'
,
data:
{
placement:
'bottom'
},
aria_label:
_
(
'Prioritize label'
)
}
%button
.label-action.add-priority.btn.
gl-button.btn-default-tertiary.btn-sm.has-tooltip.gl-ml-3
{
title:
_
(
'Prioritize'
),
type:
'button'
,
data:
{
placement:
'bottom'
},
aria_label:
_
(
'Prioritize label'
)
}
=
sprite_icon
(
'star-o'
)
%button
.label-action.remove-priority.btn.
btn-transparent.has-tooltip
{
title:
_
(
'Remove priority'
),
type:
'button'
,
data:
{
placement:
'bottom'
},
aria_label:
_
(
'Deprioritize label'
)
}
%button
.label-action.remove-priority.btn.
gl-button.btn-default-tertiary.btn-sm.has-tooltip.gl-ml-3
{
title:
_
(
'Remove priority'
),
type:
'button'
,
data:
{
placement:
'bottom'
},
aria_label:
_
(
'Deprioritize label'
)
}
=
sprite_icon
(
'star'
)
-
if
can?
(
current_user
,
:admin_label
,
label
)
%li
.inline
=
link_to
label
.
edit_path
,
class:
'btn
btn-transparent
label-action edit has-tooltip'
,
title:
_
(
'Edit'
),
data:
{
placement:
'bottom'
},
aria_label:
_
(
'Edit'
)
do
=
link_to
label
.
edit_path
,
class:
'btn
gl-button btn-default-tertiary btn-sm
label-action edit has-tooltip'
,
title:
_
(
'Edit'
),
data:
{
placement:
'bottom'
},
aria_label:
_
(
'Edit'
)
do
=
sprite_icon
(
'pencil'
)
-
if
can?
(
current_user
,
:admin_label
,
label
)
%li
.inline
.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
gl-button btn-default-tertiary btn-sm
js-label-options-dropdown label-action'
,
data:
{
toggle:
'dropdown'
},
aria_label:
_
(
'Label actions dropdown'
)
}
=
sprite_icon
(
'ellipsis_v'
)
.dropdown-menu.dropdown-open-left
%ul
...
...
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