Commit 26faaa77 authored by Filipa Lacerda's avatar Filipa Lacerda Committed by Douglas Barbosa Alexandre

Moves method to TreeHelper

Reuses existing TreeHelper instead of creating a new one just for one
method.
parent 410a506c
......@@ -147,4 +147,11 @@ module TreeHelper
def relative_url_root
Gitlab.config.gitlab.relative_url_root.presence || '/'
end
# project and path are used on the EE version
def tree_content_data(logs_path, project, path)
{
"logs-path" => logs_path
}
end
end
.tree-content-holder.js-tree-content{ 'data-logs-path': @logs_path }
.tree-content-holder.js-tree-content{ data: tree_content_data(@logs_path, @project, @path) }
.table-holder.bordered-box
%table.table#tree-slider{ class: "table_#{@hex_path} tree-table qa-file-tree" }
%thead
......
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