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
bf0c4426
Commit
bf0c4426
authored
Jun 02, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feedback
parent
91b475a9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
13 deletions
+9
-13
app/views/projects/labels/_form.html.haml
app/views/projects/labels/_form.html.haml
+0
-4
app/views/projects/labels/_label.html.haml
app/views/projects/labels/_label.html.haml
+1
-1
app/views/projects/labels/index.html.haml
app/views/projects/labels/index.html.haml
+3
-2
app/views/shared/_label_row.html.haml
app/views/shared/_label_row.html.haml
+5
-6
No files found.
app/views/projects/labels/_form.html.haml
View file @
bf0c4426
...
...
@@ -24,10 +24,6 @@
-
suggested_colors
.
each
do
|
color
|
=
link_to
'#'
,
style:
"background-color:
#{
color
}
"
,
data:
{
color:
color
}
do
.form-group
=
f
.
label
:priority
,
"Priority"
,
class:
'control-label'
.col-sm-10
=
f
.
text_field
:priority
,
class:
"form-control"
.form-actions
-
if
@label
.
persisted?
...
...
app/views/projects/labels/_label.html.haml
View file @
bf0c4426
-
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
...
...
app/views/projects/labels/index.html.haml
View file @
bf0c4426
...
...
@@ -10,7 +10,8 @@
New label
.labels
.prioritized-labels
{
class:
(
'hide'
if
params
[
:page
].
present?
)}
-
hide_class
=
'hide'
if
((
params
[
:page
].
present?
and
params
[
:page
]
!=
'1'
)
or
@labels
.
blank?
)
.prioritized-labels
{
class:
hide_class
}
%h5
Prioritized Label
%ul
.content-list.manage-labels-list.js-prioritized-labels
{
"data-url"
=>
set_sorting_namespace_project_labels_path
(
@project
.
namespace
,
@project
)
}
-
if
@prioritized
.
present?
...
...
@@ -18,7 +19,7 @@
-
else
%p
.empty-message
No prioritized labels yet
.other-labels
%h5
Other Labels
%h5
{
class:
hide_class
}
Other Labels
-
if
@labels
.
present?
%ul
.content-list.manage-labels-list.js-other-labels
=
render
@labels
...
...
app/views/shared/_label_row.html.haml
View file @
bf0c4426
-
label_css_id
=
dom_id
(
label
)
%span
.label-row
.js-toggle-priority.toggle-priority
{
:"data-url"
=>
remove_priority_namespace_project_label_path
(
@project
.
namespace
,
@project
,
label
),
:"data-dom-id"
=>
"#{label_css_id}"
}
.js-toggle-priority.toggle-priority
{
data:
{
url:
remove_priority_namespace_project_label_path
(
@project
.
namespace
,
@project
,
label
),
dom_id:
dom_id
(
label
)
}
}
%button
.add-priority.btn.has-tooltip
{
title:
'Prioritize'
,
:'data-placement'
=>
'top'
}
%i
.fa.fa-star-o
=
icon
(
'star-o'
)
%button
.remove-priority.btn.has-tooltip
{
title:
'Remove priority'
,
:'data-placement'
=>
'top'
}
%i
.fa.fa-star
=
icon
(
'star'
)
%span
.label-name
=
link_to_label
(
label
,
tooltip:
false
)
%span
.prepend-left-10
=
markdown
(
label
.
description
,
pipeline: :single_line
)
\ No newline at end of file
=
markdown
(
label
.
description
,
pipeline: :single_line
)
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