gitlabhq/app/views/snippets/show.html.haml
Dmitriy Zaporozhets 0accbaae15 snippets restyle
2011-11-26 00:19:14 +02:00

24 lines
788 B
Plaintext

- if !@snippet.expired?
.ui-box.width-100p
%h3
= @snippet.title
.right= @snippet.file_name
.data.no-padding
:erb
<%= raw @snippet.colorize %>
.buttons
- if can?(current_user, :admin_snippet, @project) || @snippet.author == current_user
= link_to 'Edit', edit_project_snippet_path(@project, @snippet), :class => "grey-button"
- if can?(current_user, :admin_snippet, @project) || @snippet.author == current_user
.right= link_to 'Destroy', [@project, @snippet], :confirm => 'Are you sure?', :method => :delete, :class => "grey-button delete-snippet negative", :id => "destroy_snippet_#{@snippet.id}"
.clear
%br
.snippet_notes= render "notes/notes"
.clear
- else
%h2
Sorry, this snippet is no longer exists