summaryrefslogtreecommitdiff
path: root/app/views/shared/snippets/_blob.html.haml
blob: 9bcb4544b975d11e1fffbd452304637ac398f409 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- blob = @snippet.blob
.js-file-title.file-title-flex-parent
  .file-header-content
    = blob_icon blob.mode, blob.path

    %strong.file-title-name
      = blob.path

    = copy_file_path_button(blob.path)

    %small
      = number_to_human_size(blob.raw_size)

  .file-actions.hidden-xs
    = render 'projects/blob/viewer_switcher', blob: blob

    .btn-group{ role: "group" }<
      = copy_blob_source_button(blob)
      = open_raw_blob_button(blob)

      = link_to icon('download'), download_snippet_path(@snippet), target: '_blank', class: "btn btn-sm has-tooltip", title: 'Download', data: { container: 'body' }

= render 'projects/blob/content', blob: blob