show.html.haml 615 Bytes
Newer Older
Douwe Maan's avatar
Douwe Maan committed
1
- page_title @snippet.title, "Snippets"
2

Luke Bennett's avatar
Luke Bennett committed
3
= render 'shared/snippets/header'
4

Luke Bennett's avatar
Luke Bennett committed
5
%article.file-holder.snippet-file-content
6
  .js-file-title.file-title
Luke Bennett's avatar
Luke Bennett committed
7
8
9
    = blob_icon 0, @snippet.file_name
    = @snippet.file_name
    .file-actions
10
      = clipboard_button(clipboard_target: ".blob-content[data-blob-id='#{@snippet.id}']", class: "btn btn-sm")
Luke Bennett's avatar
Luke Bennett committed
11
      = link_to 'Raw', raw_snippet_path(@snippet), class: "btn btn-sm", target: "_blank"
12
      = link_to 'Download', download_snippet_path(@snippet), class: "btn btn-sm"
Luke Bennett's avatar
Luke Bennett committed
13
  = render 'shared/snippets/blob'
14

15
= render 'award_emoji/awards_block', awardable: @snippet, inline: true