2018-05-09 12:01:36 +05:30
|
|
|
- can_collaborate = can_collaborate_with_project?(@project)
|
|
|
|
- can_create_mr_from_fork = can?(current_user, :fork_project, @project) && can?(current_user, :create_merge_request_in, @project)
|
2020-11-24 15:15:51 +05:30
|
|
|
- can_visit_ide = can_collaborate || current_user&.already_forked?(@project)
|
2018-05-09 12:01:36 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
.tree-ref-container
|
|
|
|
.tree-ref-holder
|
2018-03-17 18:26:18 +05:30
|
|
|
= render 'shared/ref_switcher', destination: 'tree', path: @path, show_create: true
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
#js-repo-breadcrumb{ data: breadcrumb_data_attributes }
|
2015-11-26 14:37:03 +05:30
|
|
|
|
2020-03-13 15:44:24 +05:30
|
|
|
.tree-controls
|
|
|
|
.d-block.d-sm-flex.flex-wrap.align-items-start.gl-children-ml-sm-3<
|
|
|
|
= render_if_exists 'projects/tree/lock_link'
|
2020-07-28 23:09:34 +05:30
|
|
|
#js-tree-history-link.d-inline-block{ data: { history_link: project_commits_path(@project, @ref) } }
|
2016-01-14 18:37:52 +05:30
|
|
|
|
2020-03-13 15:44:24 +05:30
|
|
|
= render 'projects/find_file_link'
|
2016-01-14 18:37:52 +05:30
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
- if can_visit_ide || can_create_mr_from_fork
|
|
|
|
#js-tree-web-ide-link.d-inline-block{ data: { options: vue_ide_link_data(@project, @ref).to_json } }
|
|
|
|
- if !can_visit_ide
|
|
|
|
= render 'shared/confirm_fork_modal', fork_path: ide_fork_and_edit_path(@project, @ref, @path)
|
|
|
|
- unless current_user&.gitpod_enabled
|
|
|
|
= render 'shared/gitpod/enable_gitpod_modal'
|
2018-05-09 12:01:36 +05:30
|
|
|
|
2020-03-13 15:44:24 +05:30
|
|
|
- if show_xcode_link?(@project)
|
|
|
|
.project-action-button.project-xcode.inline<
|
|
|
|
= render "projects/buttons/xcode_link"
|
|
|
|
|
|
|
|
= render 'projects/buttons/download', project: @project, ref: @ref
|
|
|
|
|
|
|
|
.project-clone-holder.d-none.d-md-inline-block>
|
|
|
|
= render "projects/buttons/clone", dropdown_class: 'dropdown-menu-right'
|
2019-02-15 15:39:39 +05:30
|
|
|
|
2020-03-13 15:44:24 +05:30
|
|
|
.project-clone-holder.d-block.d-md-none.mt-sm-2.mt-md-0.ml-sm-2>
|
|
|
|
= render "shared/mobile_clone_panel"
|