Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
26faaa77
Commit
26faaa77
authored
Jul 11, 2019
by
Filipa Lacerda
Committed by
Douglas Barbosa Alexandre
Jul 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moves method to TreeHelper
Reuses existing TreeHelper instead of creating a new one just for one method.
parent
410a506c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
app/helpers/tree_helper.rb
app/helpers/tree_helper.rb
+7
-0
app/views/projects/tree/_tree_content.html.haml
app/views/projects/tree/_tree_content.html.haml
+1
-1
No files found.
app/helpers/tree_helper.rb
View file @
26faaa77
...
...
@@ -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
app/views/projects/tree/_tree_content.html.haml
View file @
26faaa77
.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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment