Commit 6f8626de authored by Fatih Acet's avatar Fatih Acet

Escape JavaScript in haml template.

parent b63dc993
...@@ -38,19 +38,19 @@ ...@@ -38,19 +38,19 @@
:javascript :javascript
gl.projectOptions = gl.projectOptions || {}; gl.projectOptions = gl.projectOptions || {};
gl.projectOptions["#{@project.path}"] = { gl.projectOptions["#{j(@project.path)}"] = {
issuesPath: "#{namespace_project_issues_path(@project.namespace, @project)}", issuesPath: "#{namespace_project_issues_path(@project.namespace, @project)}",
mrPath: "#{namespace_project_merge_requests_path(@project.namespace, @project)}", mrPath: "#{namespace_project_merge_requests_path(@project.namespace, @project)}",
name: "#{@project.name}" name: "#{j(@project.name)}"
}; };
- if @group and @group.path - if @group and @group.path
:javascript :javascript
gl.groupOptions = gl.groupOptions || {}; gl.groupOptions = gl.groupOptions || {};
gl.groupOptions["#{@group.path}"] = { gl.groupOptions["#{j(@group.path)}"] = {
name: "#{@group.name}", name: "#{j(@group.name)}",
issuesPath: "#{issues_group_path(@group.path)}", issuesPath: "#{issues_group_path(j(@group.path))}",
mrPath: "#{merge_requests_group_path(@group.path)}" mrPath: "#{merge_requests_group_path(j(@group.path))}"
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment