2021-01-03 14:25:43 +05:30
|
|
|
- type = blob ? 'blob' : 'tree'
|
|
|
|
|
2021-02-22 17:27:13 +05:30
|
|
|
.d-inline-block{ data: { options: web_ide_button_data({ blob: blob }).to_json }, id: "js-#{type}-web-ide-link" }
|
2021-01-03 14:25:43 +05:30
|
|
|
|
2021-02-22 17:27:13 +05:30
|
|
|
- if show_edit_button?({ blob: blob })
|
2021-01-03 14:25:43 +05:30
|
|
|
= render 'shared/confirm_fork_modal', fork_path: fork_and_edit_path(@project, @ref, @path), type: 'edit'
|
|
|
|
- if show_web_ide_button?
|
|
|
|
= render 'shared/confirm_fork_modal', fork_path: ide_fork_and_edit_path(@project, @ref, @path), type: 'webide'
|
|
|
|
- if show_gitpod_button?
|
|
|
|
= render 'shared/gitpod/enable_gitpod_modal'
|