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
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.file-actions
|
2017-08-17 22:00:37 +05:30
|
|
|
= render 'projects/blob/viewer_switcher', blob: blob unless blame
|
|
|
|
|
|
|
|
.btn-group{ role: "group" }<
|
|
|
|
= copy_blob_source_button(blob) unless blame
|
|
|
|
= open_raw_blob_button(blob)
|
|
|
|
= view_on_environment_button(@commit.sha, @path, @environment) if @environment
|
|
|
|
|
|
|
|
.btn-group{ role: "group" }<
|
2018-11-08 19:23:39 +05:30
|
|
|
= render_if_exists 'projects/blob/header_file_locks_link'
|
2018-03-27 19:54:05 +05:30
|
|
|
= edit_blob_button
|
2018-05-09 12:01:36 +05:30
|
|
|
= ide_edit_button
|
2017-08-17 22:00:37 +05:30
|
|
|
- if current_user
|
|
|
|
= replace_blob_link
|
|
|
|
= delete_blob_link
|
|
|
|
|
|
|
|
= render 'projects/fork_suggestion'
|
2018-11-08 19:23:39 +05:30
|
|
|
= render_if_exists 'projects/blob/header_file_locks', project: @project, path: @path
|