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
c3cc3320
Commit
c3cc3320
authored
Apr 19, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'dev/master' into 'master'
parents
7543bc17
33a483e7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
app/assets/javascripts/labels_select.js.coffee
app/assets/javascripts/labels_select.js.coffee
+5
-5
app/assets/javascripts/milestone_select.js.coffee
app/assets/javascripts/milestone_select.js.coffee
+2
-2
No files found.
app/assets/javascripts/labels_select.js.coffee
View file @
c3cc3320
...
...
@@ -33,13 +33,13 @@ class @LabelsSelect
if
issueUpdateURL
labelHTMLTemplate
=
_
.
template
(
'<% _.each(labels, function(label){ %>
<a href="<%= ["",issueURLSplit[1], issueURLSplit[2],""].join("/") %>issues?label_name=<%=
label.title
%>">
<span class="label has-tooltip color-label" title="<%=
label.description
%>" style="background-color: <%= label.color %>;">
<%=
label.title
%>
<a href="<%= ["",issueURLSplit[1], issueURLSplit[2],""].join("/") %>issues?label_name=<%=
_.escape(label.title)
%>">
<span class="label has-tooltip color-label" title="<%=
_.escape(label.description)
%>" style="background-color: <%= label.color %>;">
<%=
_.escape(label.title)
%>
</span>
</a>
<% }); %>'
)
;
)
labelNoneHTMLTemplate
=
_
.
template
(
'<div class="light">None</div>'
)
if
newLabelField
.
length
and
$dropdown
.
hasClass
'js-extra-options'
...
...
@@ -211,7 +211,7 @@ class @LabelsSelect
"<li>
<a href='#' class='
#{
selectedClass
}
'>
#{
color
}
#{
label
.
title
}
#{
_
.
escape
(
label
.
title
)
}
</a>
</li>"
filterable
:
true
...
...
app/assets/javascripts/milestone_select.js.coffee
View file @
c3cc3320
...
...
@@ -24,7 +24,7 @@ class @MilestoneSelect
if
issueUpdateURL
milestoneLinkTemplate
=
_
.
template
(
'<a href="/<%= namespace %>/<%= path %>/milestones/<%= iid %>"><%=
title
%></a>'
'<a href="/<%= namespace %>/<%= path %>/milestones/<%= iid %>"><%=
_.escape(title)
%></a>'
)
milestoneLinkNoneTemplate
=
'<div class="light">None</div>'
...
...
@@ -71,7 +71,7 @@ class @MilestoneSelect
defaultLabel
fieldName
:
$dropdown
.
data
(
'field-name'
)
text
:
(
milestone
)
->
milestone
.
title
_
.
escape
(
milestone
.
title
)
id
:
(
milestone
)
->
if
!
useId
milestone
.
name
...
...
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