diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-08-01 08:50:59 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-08-01 08:50:59 +0000 |
commit | 423d31a300370c9c0acd9e8faae4d7bda2ac7d61 (patch) | |
tree | 733b732407f6f682edd875e3915af5e638cfce7d /app/views/projects/find_file/show.html.haml | |
parent | 5000c4ff4a04007b09bacbc5b5889d1ae3de4e59 (diff) | |
download | gitlab-ce-423d31a300370c9c0acd9e8faae4d7bda2ac7d61.tar.gz |
Inline script cleanup globals and easy
Diffstat (limited to 'app/views/projects/find_file/show.html.haml')
-rw-r--r-- | app/views/projects/find_file/show.html.haml | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/views/projects/find_file/show.html.haml b/app/views/projects/find_file/show.html.haml index e3bf48ee47f..021575160ea 100644 --- a/app/views/projects/find_file/show.html.haml +++ b/app/views/projects/find_file/show.html.haml @@ -1,7 +1,7 @@ - page_title "Find File", @ref = render "projects/commits/head" -.file-finder-holder.tree-holder.clearfix +.file-finder-holder.tree-holder.clearfix.js-file-finder{ 'data-file-find-url': "#{escape_javascript(project_files_path(@project, @ref, @options.merge(format: :json)))}", 'data-find-tree-url': escape_javascript(project_tree_path(@project, @ref)), 'data-blob-url-template': escape_javascript(project_blob_path(@project, @id || @commit.id)) } .nav-block .tree-ref-holder = render 'shared/ref_switcher', destination: 'find_file', path: @path @@ -17,11 +17,3 @@ %table.table.files-slider{ class: "table_#{@hex_path} tree-table table-striped" } %tbody = spinner nil, true - -:javascript - var projectFindFile = new ProjectFindFile($(".file-finder-holder"), { - url: "#{escape_javascript(project_files_path(@project, @ref, @options.merge(format: :json)))}", - treeUrl: "#{escape_javascript(project_tree_path(@project, @ref))}", - blobUrlTemplate: "#{escape_javascript(project_blob_path(@project, @id || @commit.id))}" - }); - new ShortcutsFindFile(projectFindFile); |