summaryrefslogtreecommitdiff
path: root/app/views/snippets/show.html.haml
blob: cd89155c616b6622958b5d8cd9c43ead8b848c19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- page_title @snippet.title, "Snippets"

= render 'shared/snippets/header'

%article.file-holder.snippet-file-content
  .file-title
    = blob_icon 0, @snippet.file_name
    = @snippet.file_name
    .file-actions
      = clipboard_button(clipboard_target: ".blob-content[data-blob-id='#{@snippet.id}']")
      = link_to 'Raw', raw_snippet_path(@snippet), class: "btn btn-sm", target: "_blank"
  = render 'shared/snippets/blob'

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