gitlab-org--gitlab-foss/app/views/shared/snippets/_blob.html.haml

15 lines
518 B
Text
Raw Normal View History

2017-04-13 12:47:28 -04:00
- blob = @snippet.blob
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 12:47:28 -04:00
= render 'projects/blob/viewer_switcher', blob: blob
2017-03-14 13:58:52 -04:00
.btn-group{ role: "group" }<
2017-04-13 12:47:28 -04:00
= copy_blob_source_button(blob)
= open_raw_blob_button(blob)
2017-03-14 13:58:52 -04:00
2017-05-02 09:53:29 -04:00
= link_to icon('download'), download_snippet_path(@snippet), target: '_blank', class: "btn btn-sm has-tooltip", title: 'Download', data: { container: 'body' }
2017-03-14 13:58:52 -04:00
2017-04-13 12:47:28 -04:00
= render 'projects/blob/content', blob: blob