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
Jérome Perrin
gitlab-ce
Commits
6f8626de
Commit
6f8626de
authored
Jun 14, 2016
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Escape JavaScript in haml template.
parent
b63dc993
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
app/views/layouts/_search.html.haml
app/views/layouts/_search.html.haml
+6
-6
No files found.
app/views/layouts/_search.html.haml
View file @
6f8626de
...
@@ -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
)
)
}
"
};
};
...
...
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