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
|
|
|
- ref = local_assigns.fetch(:ref) { current_ref }
|
|
|
|
- project = local_assigns.fetch(:project) { @project }
|
2019-02-15 15:39:39 +05:30
|
|
|
- show_auto_devops_callout = show_auto_devops_callout?(@project)
|
2020-07-28 23:09:34 +05:30
|
|
|
- add_page_startup_api_call logs_file_project_ref_path(@project, ref, @path, format: "json", offset: 0)
|
2021-02-22 17:27:13 +05:30
|
|
|
- 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-09-10 17:25:29 +05:30
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
#tree-holder.tree-holder.clearfix
|
2021-09-04 01:27:46 +05:30
|
|
|
.nav-block.gl-display-flex.gl-xs-flex-direction-column.gl-align-items-stretch
|
2015-11-26 14:37:03 +05:30
|
|
|
= render 'projects/tree/tree_header', tree: @tree
|
|
|
|
|
2022-01-26 12:08:38 +05:30
|
|
|
.info-well.gl-display-none.gl-sm-display-flex.project-last-commit.gl-flex-direction-column
|
|
|
|
#js-last-commit.gl-m-auto
|
2021-02-22 17:27:13 +05:30
|
|
|
.gl-spinner-container.m-auto
|
|
|
|
= loading_icon(size: 'md', color: 'dark', css_class: 'align-text-bottom')
|
2022-01-26 12:08:38 +05:30
|
|
|
#js-code-owners
|
2015-11-26 14:37:03 +05:30
|
|
|
|
2019-02-15 15:39:39 +05:30
|
|
|
- if is_project_overview
|
2020-07-28 23:09:34 +05:30
|
|
|
.project-buttons.gl-mb-3.js-show-on-project-root
|
2021-01-03 14:25:43 +05:30
|
|
|
= render 'stat_anchor_list', anchors: @project.statistics_buttons(show_auto_devops_callout: show_auto_devops_callout), project_buttons: true
|
2019-02-15 15:39:39 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
#js-tree-list{ data: vue_file_list_data(project, ref) }
|
2021-11-18 22:05:49 +05:30
|
|
|
- if !Feature.enabled?(:new_dir_modal, default_enabled: :yaml) && can_edit_tree?
|
2020-07-28 23:09:34 +05:30
|
|
|
= render 'projects/blob/new_dir'
|
2021-11-18 22:05:49 +05:30
|
|
|
|