2017-08-17 22:00:37 +05:30
|
|
|
- blame = local_assigns.fetch(:blame, false)
|
|
|
|
.js-file-title.file-title-flex-parent
|
|
|
|
= render 'projects/blob/header_content', blob: blob
|
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
.file-actions.gl-display-flex.gl-flex-fill-1.gl-align-self-start.gl-md-justify-content-end<
|
2017-08-17 22:00:37 +05:30
|
|
|
= render 'projects/blob/viewer_switcher', blob: blob unless blame
|
2021-01-29 00:20:46 +05:30
|
|
|
- if Feature.enabled?(:consolidated_edit_button, @project)
|
2021-01-03 14:25:43 +05:30
|
|
|
= render 'shared/web_ide_button', blob: blob
|
|
|
|
- else
|
|
|
|
= edit_blob_button(@project, @ref, @path, blob: blob)
|
|
|
|
= ide_edit_button(@project, @ref, @path, blob: blob)
|
2020-03-09 13:42:32 +05:30
|
|
|
.btn-group.ml-2{ role: "group" }>
|
2019-12-26 22:10:19 +05:30
|
|
|
= render_if_exists 'projects/blob/header_file_locks_link'
|
2017-08-17 22:00:37 +05:30
|
|
|
- if current_user
|
2020-05-24 23:13:21 +05:30
|
|
|
= replace_blob_link(@project, @ref, @path, blob: blob)
|
|
|
|
= delete_blob_link(@project, @ref, @path, blob: blob)
|
2020-03-09 13:42:32 +05:30
|
|
|
.btn-group.ml-2{ role: "group" }
|
2019-12-26 22:10:19 +05:30
|
|
|
= copy_blob_source_button(blob) unless blame
|
|
|
|
= open_raw_blob_button(blob)
|
|
|
|
= download_blob_button(blob)
|
|
|
|
= view_on_environment_button(@commit.sha, @path, @environment) if @environment
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
= render 'projects/fork_suggestion'
|
2018-11-08 19:23:39 +05:30
|
|
|
= render_if_exists 'projects/blob/header_file_locks', project: @project, path: @path
|