gitlab-org--gitlab-foss/app/views/projects/_files.html.haml

14 lines
631 B
Text
Raw Normal View History

- 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) }
#tree-holder.tree-holder.clearfix
.nav-block
= render 'projects/tree/tree_header', tree: @tree
- if !show_new_repo? && commit
= render 'shared/commit_well', commit: commit, ref: ref, project: project
2017-08-03 08:29:35 -04:00
= render 'projects/tree/tree_content', tree: @tree, content_url: content_url