_blob.html.haml 685 字节
Newer Older
D
Douwe Maan 已提交
1
- blob = @snippet.blob
D
Douwe Maan 已提交
2 3
.js-file-title.file-title-flex-parent
  .file-header-content
D
Douwe Maan 已提交
4
    = blob_icon blob.mode, blob.path
D
Douwe Maan 已提交
5 6

    %strong.file-title-name
D
Douwe Maan 已提交
7
      = blob.path
D
Douwe Maan 已提交
8

D
Douwe Maan 已提交
9 10 11 12
    = copy_file_path_button(blob.path)

    %small
      = number_to_human_size(blob.raw_size)
D
Douwe Maan 已提交
13 14

  .file-actions.hidden-xs
D
Douwe Maan 已提交
15 16
    = render 'projects/blob/viewer_switcher', blob: blob

D
Douwe Maan 已提交
17
    .btn-group{ role: "group" }<
D
Douwe Maan 已提交
18
      = copy_blob_source_button(blob)
19
      = open_raw_blob_button(blob)
D
Douwe Maan 已提交
20 21 22 23

      - if defined?(download_path) && download_path
        = link_to icon('download'), download_path, class: "btn btn-sm has-tooltip", title: 'Download', data: { container: 'body' }

D
Douwe Maan 已提交
24
= render 'projects/blob/content', blob: blob