gitlab-org--gitlab-foss/app/views/snippets/show.html.haml
Phil Hughes da5f0b9119 Updated snippets UI
Closes #14328
2016-05-18 14:11:06 +01:00

13 lines
510 B
Text

- page_title @snippet.title, "Snippets"
.snippet-holder
= render 'shared/snippets/header'
%article.file-holder.file-holder-no-border.snippet-file-content
.file-title.file-title-clear
= blob_icon 0, @snippet.file_name
= @snippet.file_name
.file-actions.hidden-xs
= 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'