2015-04-30 15:10:42 -04:00
|
|
|
- page_title @snippet.title, "Snippets"
|
2013-07-18 06:08:48 -04:00
|
|
|
|
2016-09-05 13:57:00 -04:00
|
|
|
= render 'shared/snippets/header'
|
2015-10-18 06:54:02 -04:00
|
|
|
|
2016-09-05 13:57:00 -04:00
|
|
|
%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"
|
2016-10-06 12:42:17 -04:00
|
|
|
= link_to 'Download', download_snippet_path(@snippet), class: "btn btn-sm"
|
2016-09-05 13:57:00 -04:00
|
|
|
= render 'shared/snippets/blob'
|
2016-09-04 04:51:12 -04:00
|
|
|
|
|
|
|
= render 'award_emoji/awards_block', awardable: @snippet, inline: true
|