Commit f1b4f20c authored by Jacob Schatz's avatar Jacob Schatz

Fix HTML so code passes

Code was failing because branch was named `'test'` with quotes
which was escaping the javascript I was using.
parent 106939fa
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
= render 'shared/outdated_browser' = render 'shared/outdated_browser'
-if @project && !@project.empty_repo? && @ref -if @project && !@project.empty_repo? && @ref
:javascript :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? -elsif @project && !@project.empty_repo?
:javascript :javascript
var findFileURL = '#{namespace_project_find_file_path(@project.namespace, @project, @project.repository.root_ref)}'; var findFileURL = "#{namespace_project_find_file_path(@project.namespace, @project, @project.repository.root_ref)}";
\ No newline at end of file \ No newline at end of file
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