gitlab-org--gitlab-foss/app/views/projects/blob/_header.html.haml

20 lines
612 B
Text
Raw Normal View History

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
= render 'projects/blob/header_content', blob: blob
2017-03-14 13:58:52 -04:00
.file-actions.hidden-xs
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" }<
= 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" }<
= edit_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
= render 'projects/fork_suggestion'