2017-05-16 19:44:54 -04:00
|
|
|
- commit = local_assigns.fetch(:commit) { @repository.commit }
|
|
|
|
- ref = local_assigns.fetch(:ref) { current_ref }
|
|
|
|
- project = local_assigns.fetch(:project) { @project }
|
2017-08-03 08:29:35 -04:00
|
|
|
- content_url = local_assigns.fetch(:content_url) { @tree.readme ? project_blob_path(@project, tree_join(@ref, @tree.readme.path)) : project_tree_path(@project, @ref) }
|
2017-07-28 12:56:38 -04:00
|
|
|
|
2015-10-17 13:18:28 -04:00
|
|
|
#tree-holder.tree-holder.clearfix
|
2016-01-14 06:31:31 -05:00
|
|
|
.nav-block
|
2017-07-28 12:56:38 -04:00
|
|
|
= render 'projects/tree/tree_header', tree: @tree
|
|
|
|
|
2017-12-21 10:05:47 -05:00
|
|
|
- if commit
|
2017-07-28 13:18:00 -04:00
|
|
|
= render 'shared/commit_well', commit: commit, ref: ref, project: project
|
2017-07-28 12:56:38 -04:00
|
|
|
|
2017-08-03 08:29:35 -04:00
|
|
|
= render 'projects/tree/tree_content', tree: @tree, content_url: content_url
|