2018-12-07 09:11:42 -05:00
|
|
|
- is_project_overview = local_assigns.fetch(:is_project_overview, false)
|
2017-05-16 19:44:54 -04:00
|
|
|
- ref = local_assigns.fetch(:ref) { current_ref }
|
|
|
|
- project = local_assigns.fetch(:project) { @project }
|
2018-12-07 09:11:42 -05:00
|
|
|
- show_auto_devops_callout = show_auto_devops_callout?(@project)
|
2020-06-19 14:08:39 -04:00
|
|
|
- add_page_startup_api_call logs_file_project_ref_path(@project, ref, @path, format: "json", offset: 0)
|
2020-12-09 07:09:42 -05:00
|
|
|
- if readme_path = @project.repository.readme_path
|
|
|
|
- add_page_startup_api_call project_blob_path(@project, tree_join(@ref, readme_path), viewer: "rich", format: "json")
|
2017-07-28 12:56:38 -04:00
|
|
|
|
2015-10-17 13:18:28 -04:00
|
|
|
#tree-holder.tree-holder.clearfix
|
2021-06-08 14:10:23 -04:00
|
|
|
.nav-block.gl-display-flex.gl-xs-flex-direction-column.gl-align-items-stretch
|
2017-07-28 12:56:38 -04:00
|
|
|
= render 'projects/tree/tree_header', tree: @tree
|
|
|
|
|
2020-06-26 14:09:03 -04:00
|
|
|
#js-last-commit
|
2021-01-25 10:09:00 -05:00
|
|
|
.info-well.gl-display-none.gl-sm-display-flex.project-last-commit
|
2020-12-09 16:09:43 -05:00
|
|
|
.gl-spinner-container.m-auto
|
|
|
|
= loading_icon(size: 'md', color: 'dark', css_class: 'align-text-bottom')
|
2017-07-28 12:56:38 -04:00
|
|
|
|
2018-12-07 09:11:42 -05:00
|
|
|
- if is_project_overview
|
2020-06-26 14:09:03 -04:00
|
|
|
.project-buttons.gl-mb-3.js-show-on-project-root
|
2020-09-29 14:09:52 -04:00
|
|
|
= render 'stat_anchor_list', anchors: @project.statistics_buttons(show_auto_devops_callout: show_auto_devops_callout), project_buttons: true
|
2018-12-07 09:11:42 -05:00
|
|
|
|
2020-06-26 14:09:03 -04:00
|
|
|
#js-tree-list{ data: vue_file_list_data(project, ref) }
|
2021-10-11 02:13:09 -04:00
|
|
|
- if !Feature.enabled?(:new_dir_modal, default_enabled: :yaml) && can_edit_tree?
|
2020-06-26 14:09:03 -04:00
|
|
|
= render 'projects/blob/new_dir'
|
2021-10-11 02:13:09 -04:00
|
|
|
|