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

23 lines
1.1 KiB
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
- 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)
- if @tree.readme
- add_page_startup_api_call project_blob_path(@project, tree_join(@ref, @tree.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
.nav-block
2015-11-26 14:37:03 +05:30
= render 'projects/tree/tree_header', tree: @tree
2020-07-28 23:09:34 +05:30
#js-last-commit
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
2019-02-15 15:39:39 +05:30
= render 'stat_anchor_list', anchors: @project.statistics_buttons(show_auto_devops_callout: show_auto_devops_callout)
2020-07-28 23:09:34 +05:30
#js-tree-list{ data: vue_file_list_data(project, ref) }
- if can_edit_tree?
= render 'projects/blob/upload', title: _('Upload New File'), placeholder: _('Upload New File'), button_title: _('Upload file'), form_path: project_create_blob_path(@project, @id), method: :post
= render 'projects/blob/new_dir'