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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
a04897b7
Commit
a04897b7
authored
Jun 06, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo
parent
7bc65b2b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/views/projects/labels/_label.html.haml
app/views/projects/labels/_label.html.haml
+2
-2
app/views/projects/labels/index.html.haml
app/views/projects/labels/index.html.haml
+2
-2
No files found.
app/views/projects/labels/_label.html.haml
View file @
a04897b7
-
label_css_id
=
dom_id
(
label
)
%li
{
id:
label_css_id
,
data:
{
id:
label
.
id
}
}
%li
{
id:
label_css_id
,
data:
{
id:
label
.
id
}
}
=
render
"shared/label_row"
,
label:
label
.pull-info-right
%span
.append-right-20
...
...
@@ -17,7 +17,7 @@
%button
.js-subscribe-button.label-subscribe-button.btn.action-buttons
{
type:
"button"
,
data:
{
toggle:
"tooltip"
}
}
%span
=
label_subscription_toggle_button_text
(
label
)
-
if
can?
current_user
,
:admin_label
,
@project
-
if
can?
(
current_user
,
:admin_label
,
@project
)
=
link_to
edit_namespace_project_label_path
(
@project
.
namespace
,
@project
,
label
),
title:
"Edit"
,
class:
'btn action-buttons'
,
data:
{
toggle:
'tooltip'
}
do
%i
.fa.fa-pencil-square-o
=
link_to
namespace_project_label_path
(
@project
.
namespace
,
@project
,
label
),
title:
"Delete"
,
class:
'btn action-buttons remove-row'
,
method: :delete
,
remote:
true
,
data:
{
confirm:
'Remove this label? Are you sure?'
,
toggle:
'tooltip'
}
do
...
...
app/views/projects/labels/index.html.haml
View file @
a04897b7
...
...
@@ -5,7 +5,7 @@
.nav-text
Labels can be applied to issues and merge requests.
.nav-controls
-
if
can?
current_user
,
:admin_label
,
@project
-
if
can?
(
current_user
,
:admin_label
,
@project
)
=
link_to
new_namespace_project_label_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-new"
do
=
icon
(
'plus'
)
New label
...
...
@@ -23,7 +23,7 @@
%p
.empty-message
No prioritized labels yet
.other-labels
-
if
can?
(
current_user
,
:admin_label
,
@project
)
%h5
{
class:
(
'hide'
if
hide
}
Other Labels
%h5
{
class:
(
'hide'
if
hide
)
}
Other Labels
-
if
@labels
.
present?
%ul
.content-list.manage-labels-list.js-other-labels
=
render
@labels
...
...
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