debian-mirror-gitlab/app/views/projects/snippets/show.html.haml

18 lines
638 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title @snippet.title, "Snippets"
2015-09-25 12:07:36 +05:30
2016-09-29 09:46:39 +05:30
= render 'shared/snippets/header'
2014-09-02 18:07:02 +05:30
2016-09-29 09:46:39 +05:30
.project-snippets
%article.file-holder.snippet-file-content
.file-title
2015-11-26 14:37:03 +05:30
= blob_icon 0, @snippet.file_name
= @snippet.file_name
2016-09-29 09:46:39 +05:30
.file-actions
2015-12-23 02:04:40 +05:30
= clipboard_button(clipboard_target: ".blob-content[data-blob-id='#{@snippet.id}']")
= link_to 'Raw', raw_namespace_project_snippet_path(@project.namespace, @project, @snippet), class: "btn btn-sm", target: "_blank"
2015-11-26 14:37:03 +05:30
= render 'shared/snippets/blob'
2014-09-02 18:07:02 +05:30
2016-09-29 09:46:39 +05:30
= render 'award_emoji/awards_block', awardable: @snippet, inline: true
2015-11-26 14:37:03 +05:30
%div#notes= render "projects/notes/notes_with_form"