2018-04-06 12:27:12 -04:00
|
|
|
- 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)
|
|
|
|
|
2017-06-22 04:19:04 -04:00
|
|
|
.tree-ref-container
|
|
|
|
.tree-ref-holder
|
2017-10-23 06:57:23 -04:00
|
|
|
= render 'shared/ref_switcher', destination: 'tree', path: @path, show_create: true
|
2017-03-09 20:58:48 -05:00
|
|
|
|
2020-06-26 14:09:03 -04:00
|
|
|
#js-repo-breadcrumb{ data: breadcrumb_data_attributes }
|
2017-07-28 13:17:12 -04:00
|
|
|
|
2020-02-25 07:08:48 -05:00
|
|
|
.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-06-26 14:09:03 -04:00
|
|
|
#js-tree-history-link.d-inline-block{ data: { history_link: project_commits_path(@project, @ref) } }
|
2020-02-25 07:08:48 -05:00
|
|
|
|
|
|
|
= render 'projects/find_file_link'
|
|
|
|
|
|
|
|
- if can_collaborate || current_user&.already_forked?(@project)
|
2020-06-26 14:09:03 -04:00
|
|
|
#js-tree-web-ide-link.d-inline-block
|
2020-02-25 07:08:48 -05:00
|
|
|
- elsif can_create_mr_from_fork
|
|
|
|
= link_to '#modal-confirm-fork', class: 'btn btn-default qa-web-ide-button', data: { target: '#modal-confirm-fork', toggle: 'modal'} do
|
2019-12-02 07:06:45 -05:00
|
|
|
= _('Web IDE')
|
2020-02-25 07:08:48 -05:00
|
|
|
= render 'shared/confirm_fork_modal', fork_path: ide_fork_and_edit_path(@project, @ref, @path)
|
2018-03-20 10:12:48 -04:00
|
|
|
|
2020-02-25 07:08:48 -05:00
|
|
|
- if show_xcode_link?(@project)
|
|
|
|
.project-action-button.project-xcode.inline<
|
|
|
|
= render "projects/buttons/xcode_link"
|
2018-12-07 09:11:42 -05:00
|
|
|
|
2020-02-25 07:08:48 -05:00
|
|
|
= render 'projects/buttons/download', project: @project, ref: @ref
|
2020-01-29 13:08:47 -05:00
|
|
|
|
2020-02-25 07:08:48 -05:00
|
|
|
.project-clone-holder.d-none.d-md-inline-block>
|
|
|
|
= render "projects/buttons/clone", dropdown_class: 'dropdown-menu-right'
|
2020-01-29 13:08:47 -05:00
|
|
|
|
2020-02-25 07:08:48 -05:00
|
|
|
.project-clone-holder.d-block.d-md-none.mt-sm-2.mt-md-0.ml-sm-2>
|
|
|
|
= render "shared/mobile_clone_panel"
|