debian-mirror-gitlab/app/views/projects/_files.html.haml

20 lines
945 B
Text
Raw Normal View History

2019-02-15 15:39:39 +05:30
- is_project_overview = local_assigns.fetch(:is_project_overview, false)
2017-09-10 17:25:29 +05:30
- commit = local_assigns.fetch(:commit) { @repository.commit }
- ref = local_assigns.fetch(:ref) { current_ref }
- project = local_assigns.fetch(:project) { @project }
- content_url = local_assigns.fetch(:content_url) { @tree.readme ? project_blob_path(@project, tree_join(@ref, @tree.readme.path)) : project_tree_path(@project, @ref) }
2019-02-15 15:39:39 +05:30
- show_auto_devops_callout = show_auto_devops_callout?(@project)
2017-09-10 17:25:29 +05:30
2015-11-26 14:37:03 +05:30
#tree-holder.tree-holder.clearfix
.nav-block
2015-11-26 14:37:03 +05:30
= render 'projects/tree/tree_header', tree: @tree
2018-03-17 18:26:18 +05:30
- if commit
2017-09-10 17:25:29 +05:30
= render 'shared/commit_well', commit: commit, ref: ref, project: project
2015-11-26 14:37:03 +05:30
2019-02-15 15:39:39 +05:30
- if is_project_overview
.project-buttons.append-bottom-default
= render 'stat_anchor_list', anchors: @project.statistics_buttons(show_auto_devops_callout: show_auto_devops_callout)
2017-09-10 17:25:29 +05:30
= render 'projects/tree/tree_content', tree: @tree, content_url: content_url