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
Boxiang Sun
gitlab-ce
Commits
491c213a
Commit
491c213a
authored
Jun 21, 2016
by
Connor Shea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unescaped strings in Underscore templates.
parent
65187efa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
app/assets/javascripts/issuable.js.coffee
app/assets/javascripts/issuable.js.coffee
+4
-4
app/assets/javascripts/labels_select.js.coffee
app/assets/javascripts/labels_select.js.coffee
+3
-3
app/assets/javascripts/milestone_select.js.coffee
app/assets/javascripts/milestone_select.js.coffee
+3
-3
app/assets/javascripts/users_select.js.coffee
app/assets/javascripts/users_select.js.coffee
+6
-6
No files found.
app/assets/javascripts/issuable.js.coffee
View file @
491c213a
...
...
@@ -11,11 +11,11 @@ issuable_created = false
initTemplates
:
->
Issuable
.
labelRow
=
_
.
template
(
'<% _.each(labels, function(label){ %>
<span class="label-row btn-group" role="group" aria-label="<%
= _.escape(label.title) %>" style="color: <%=
label.text_color %>;">
<a href="#" class="btn btn-transparent has-tooltip" style="background-color: <%
= label.color %>;" title="<%= _.escape(label.description)
%>" data-container="body">
<%
= _.escape(label.title)
%>
<span class="label-row btn-group" role="group" aria-label="<%
- label.title %>" style="color: <%-
label.text_color %>;">
<a href="#" class="btn btn-transparent has-tooltip" style="background-color: <%
- label.color %>;" title="<%- label.description
%>" data-container="body">
<%
- label.title
%>
</a>
<button type="button" class="btn btn-transparent label-remove js-label-filter-remove" style="background-color: <%
= label.color %>;" data-label="<%= _.escape(label.title)
%>">
<button type="button" class="btn btn-transparent label-remove js-label-filter-remove" style="background-color: <%
- label.color %>;" data-label="<%- label.title
%>">
<i class="fa fa-times"></i>
</button>
</span>
...
...
app/assets/javascripts/labels_select.js.coffee
View file @
491c213a
...
...
@@ -32,9 +32,9 @@ class @LabelsSelect
if
issueUpdateURL
labelHTMLTemplate
=
_
.
template
(
'<% _.each(labels, function(label){ %>
<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 %>; color: <%=
label.text_color %>;">
<%
= _.escape(label.title)
%>
<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 %>; color: <%-
label.text_color %>;">
<%
- label.title
%>
</span>
</a>
<% }); %>'
...
...
app/assets/javascripts/milestone_select.js.coffee
View file @
491c213a
...
...
@@ -24,14 +24,14 @@ class @MilestoneSelect
if
issueUpdateURL
milestoneLinkTemplate
=
_
.
template
(
'<a href="/<%
= namespace %>/<%= path %>/milestones/<%= iid %>" class="bold has-tooltip" data-container="body" title="<%= remaining %>"><%= _.escape(title)
%></a>'
'<a href="/<%
- namespace %>/<%- path %>/milestones/<%- iid %>" class="bold has-tooltip" data-container="body" title="<%- remaining %>"><%- title
%></a>'
)
milestoneLinkNoneTemplate
=
'<span class="no-value">None</span>'
collapsedSidebarLabelTemplate
=
_
.
template
(
'<span class="has-tooltip" data-container="body" title="<%
=
remaining %>" data-placement="left">
<%
= _.escape(title)
%>
'<span class="has-tooltip" data-container="body" title="<%
-
remaining %>" data-placement="left">
<%
- title
%>
</span>'
)
...
...
app/assets/javascripts/users_select.js.coffee
View file @
491c213a
...
...
@@ -61,8 +61,8 @@ class @UsersSelect
collapsedAssigneeTemplate
=
_
.
template
(
'<% if( avatar ) { %>
<a class="author_link" href="/u/<%
=
username %>">
<img width="24" class="avatar avatar-inline s24" alt="" src="<%
=
avatar %>">
<a class="author_link" href="/u/<%
-
username %>">
<img width="24" class="avatar avatar-inline s24" alt="" src="<%
-
avatar %>">
<span class="author">Toni Boehm</span>
</a>
<% } else { %>
...
...
@@ -72,13 +72,13 @@ class @UsersSelect
assigneeTemplate
=
_
.
template
(
'<% if (username) { %>
<a class="author_link bold" href="/u/<%
=
username %>">
<a class="author_link bold" href="/u/<%
-
username %>">
<% if( avatar ) { %>
<img width="32" class="avatar avatar-inline s32" alt="" src="<%
=
avatar %>">
<img width="32" class="avatar avatar-inline s32" alt="" src="<%
-
avatar %>">
<% } %>
<span class="author"><%
=
name %></span>
<span class="author"><%
-
name %></span>
<span class="username">
@<%
=
username %>
@<%
-
username %>
</span>
</a>
<% } else { %>
...
...
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