2017-04-13 16:47:28 +00:00
|
|
|
- blob = @snippet.blob
|
2017-03-14 17:58:52 +00:00
|
|
|
.js-file-title.file-title-flex-parent
|
|
|
|
.file-header-content
|
2017-04-13 16:47:28 +00:00
|
|
|
= blob_icon blob.mode, blob.path
|
2017-03-14 17:58:52 +00:00
|
|
|
|
|
|
|
%strong.file-title-name
|
2017-04-13 16:47:28 +00:00
|
|
|
= blob.path
|
2017-03-14 17:58:52 +00:00
|
|
|
|
2017-04-13 16:47:28 +00:00
|
|
|
= copy_file_path_button(blob.path)
|
|
|
|
|
|
|
|
%small
|
|
|
|
= number_to_human_size(blob.raw_size)
|
2017-03-14 17:58:52 +00:00
|
|
|
|
|
|
|
.file-actions.hidden-xs
|
2017-04-13 16:47:28 +00:00
|
|
|
= render 'projects/blob/viewer_switcher', blob: blob
|
|
|
|
|
2017-03-14 17:58:52 +00:00
|
|
|
.btn-group{ role: "group" }<
|
2017-04-13 16:47:28 +00:00
|
|
|
= copy_blob_source_button(blob)
|
|
|
|
= open_raw_blob_button
|
2017-03-14 17:58:52 +00:00
|
|
|
|
|
|
|
- if defined?(download_path) && download_path
|
|
|
|
= link_to icon('download'), download_path, class: "btn btn-sm has-tooltip", title: 'Download', data: { container: 'body' }
|
|
|
|
|
2017-04-13 16:47:28 +00:00
|
|
|
= render 'projects/blob/content', blob: blob
|