diff options
author | Jacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home> | 2016-01-20 02:09:19 -0500 |
---|---|---|
committer | Jacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home> | 2016-01-20 02:09:19 -0500 |
commit | f1b4f20c75d0a97c0b1f2efe6366c586a5236094 (patch) | |
tree | 4b29f67219ff6bd571b22f9a753b21e729285a5d /app/views | |
parent | 106939fa2af87f644a4cad618d1f177b37675b5f (diff) | |
download | gitlab-ce-f1b4f20c75d0a97c0b1f2efe6366c586a5236094.tar.gz |
Fix HTML so code passessecret-shortcut-feature
Code was failing because branch was named `'test'` with quotes
which was escaping the javascript I was using.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/header/_default.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/header/_default.html.haml b/app/views/layouts/header/_default.html.haml index b83b5b1c9b0..d1425cd0e88 100644 --- a/app/views/layouts/header/_default.html.haml +++ b/app/views/layouts/header/_default.html.haml @@ -39,8 +39,8 @@ = render 'shared/outdated_browser' -if @project && !@project.empty_repo? && @ref :javascript - var findFileURL = '#{namespace_project_find_file_path(@project.namespace, @project, @ref)}'; + var findFileURL = "#{namespace_project_find_file_path(@project.namespace, @project, @ref)}"; -elsif @project && !@project.empty_repo? :javascript - var findFileURL = '#{namespace_project_find_file_path(@project.namespace, @project, @project.repository.root_ref)}';
\ No newline at end of file + var findFileURL = "#{namespace_project_find_file_path(@project.namespace, @project, @project.repository.root_ref)}";
\ No newline at end of file |