debian-mirror-gitlab/app/views/projects/blob/_header.html.haml

17 lines
749 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- blame = local_assigns.fetch(:blame, false)
2022-01-26 12:08:38 +05:30
- blob = local_assigns.fetch(:blob, nil)
2017-08-17 22:00:37 +05:30
.js-file-title.file-title-flex-parent
= render 'projects/blob/header_content', blob: blob
2021-03-11 19:13:27 +05:30
.file-actions.gl-display-flex.gl-align-items-center.gl-flex-wrap.gl-md-justify-content-end<
2017-08-17 22:00:37 +05:30
= render 'projects/blob/viewer_switcher', blob: blob unless blame
2022-05-07 20:08:51 +05:30
= render 'shared/web_ide_button', blob: blob
2021-03-11 19:13:27 +05:30
.btn-group.gl-ml-3{ 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
2021-03-11 19:13:27 +05:30
= render_fork_suggestion
2018-11-08 19:23:39 +05:30
= render_if_exists 'projects/blob/header_file_locks', project: @project, path: @path