2017-04-07 18:13:04 -04:00
|
|
|
- blame = local_assigns.fetch(:blame, false)
|
2017-03-14 13:58:52 -04:00
|
|
|
.js-file-title.file-title-flex-parent
|
2017-05-02 18:46:24 -04:00
|
|
|
= render 'projects/blob/header_content', blob: blob
|
2017-03-14 13:58:52 -04:00
|
|
|
|
2017-11-05 22:25:44 -05:00
|
|
|
.file-actions
|
2017-04-13 13:13:42 -04:00
|
|
|
= render 'projects/blob/viewer_switcher', blob: blob unless blame
|
|
|
|
|
2017-03-14 13:58:52 -04:00
|
|
|
.btn-group{ role: "group" }<
|
2017-04-13 13:11:52 -04:00
|
|
|
= copy_blob_source_button(blob) unless blame
|
|
|
|
= open_raw_blob_button(blob)
|
2017-03-14 13:58:52 -04:00
|
|
|
= view_on_environment_button(@commit.sha, @path, @environment) if @environment
|
|
|
|
|
|
|
|
.btn-group{ role: "group" }<
|
2017-05-08 19:58:54 -04:00
|
|
|
= edit_blob_link
|
2017-12-21 10:05:47 -05:00
|
|
|
= ide_blob_link
|
2017-04-06 12:36:38 -04:00
|
|
|
- if current_user
|
2017-03-14 13:58:52 -04:00
|
|
|
= replace_blob_link
|
|
|
|
= delete_blob_link
|
2017-04-10 16:51:24 -04:00
|
|
|
|
2017-04-22 01:54:03 -04:00
|
|
|
= render 'projects/fork_suggestion'
|