gitlab-org--gitlab-foss/app/views/snippets/show.html.haml

14 lines
510 B
Text
Raw Normal View History

2015-04-30 15:10:42 -04:00
- page_title @snippet.title, "Snippets"
2015-10-18 06:54:02 -04:00
.snippet-holder
= render 'shared/snippets/header'
2016-05-18 09:11:06 -04:00
%article.file-holder.file-holder-no-border.snippet-file-content
.file-title.file-title-clear
2015-10-18 06:54:02 -04:00
= blob_icon 0, @snippet.file_name
2016-05-18 09:11:06 -04:00
= @snippet.file_name
2015-10-18 06:54:02 -04:00
.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"
2015-10-18 06:54:02 -04:00
= render 'shared/snippets/blob'