Fix unescaped strings in the labels dropdown template

This commit is contained in:
Douglas Barbosa Alexandre 2016-07-06 04:40:02 -03:00
parent 998d4eb61f
commit e89a515ce9

View file

@ -32,9 +32,9 @@ class @LabelsSelect
if issueUpdateURL
labelHTMLTemplate = _.template(
'<% _.each(labels, function(label){ %>
<a href="<%- ["",issueURLSplit[1], issueURLSplit[2],""].join("/") %>issues?label_name[]=<%= encodeURIComponent(label.title) %>">
<a href="<%- ["",issueURLSplit[1], issueURLSplit[2],""].join("/") %>issues?label_name[]=<%- encodeURIComponent(label.title) %>">
<span class="label has-tooltip color-label" title="<%- label.description %>" style="background-color: <%- label.color %>; color: <%- label.text_color %>;">
<%= label.title %>
<%- label.title %>
</span>
</a>
<% }); %>'