show.html.haml 427 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
6
7
8
9
10
11
12
%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'