2016-01-07 06:56:18 -05:00
|
|
|
- page_title "Find File", @ref
|
|
|
|
|
|
|
|
.file-finder-holder.tree-holder.clearfix
|
2016-03-28 05:31:48 -04:00
|
|
|
.nav-block
|
2016-01-07 06:56:18 -05:00
|
|
|
.tree-ref-holder
|
|
|
|
= render 'shared/ref_switcher', destination: 'find_file', path: @path
|
|
|
|
%ul.breadcrumb.repo-breadcrumb
|
|
|
|
%li
|
|
|
|
= link_to namespace_project_tree_path(@project.namespace, @project, @ref) do
|
|
|
|
= @project.path
|
|
|
|
%li.file-finder
|
2016-01-19 21:39:48 -05:00
|
|
|
%input#file_find.form-control.file-finder-input{type: "text", placeholder: 'Find by path', autocomplete: 'off'}
|
2016-01-07 06:56:18 -05:00
|
|
|
|
2016-12-23 04:37:12 -05:00
|
|
|
.tree-content-holder
|
2016-01-07 06:56:18 -05:00
|
|
|
.table-holder
|
|
|
|
%table.table.files-slider{class: "table_#{@hex_path} tree-table table-striped" }
|
|
|
|
%tbody
|
|
|
|
= spinner nil, true
|
|
|
|
|
2016-01-10 22:01:15 -05:00
|
|
|
:javascript
|
|
|
|
var projectFindFile = new ProjectFindFile($(".file-finder-holder"), {
|
|
|
|
url: "#{escape_javascript(namespace_project_files_path(@project.namespace, @project, @ref, @options.merge(format: :json)))}",
|
|
|
|
treeUrl: "#{escape_javascript(namespace_project_tree_path(@project.namespace, @project, @ref))}",
|
2016-01-07 06:56:18 -05:00
|
|
|
blobUrlTemplate: "#{escape_javascript(namespace_project_blob_path(@project.namespace, @project, @id || @commit.id))}"
|
2016-01-10 22:01:15 -05:00
|
|
|
});
|
|
|
|
new ShortcutsFindFile(projectFindFile);
|