gitlabhq/app/views/snippets/show.html.haml

24 lines
788 B
Plaintext
Raw Normal View History

2011-10-27 08:46:21 +02:00
- if !@snippet.expired?
2011-11-25 23:19:14 +01:00
.ui-box.width-100p
%h3
= @snippet.title
.right= @snippet.file_name
.data.no-padding
2011-10-27 08:46:21 +02:00
:erb
<%= raw @snippet.colorize %>
2011-10-16 23:07:10 +02:00
2011-11-25 23:19:14 +01:00
.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}"
2011-10-27 08:46:21 +02:00
.clear
%br
.snippet_notes= render "notes/notes"
2011-10-16 23:07:10 +02:00
2011-10-27 08:46:21 +02:00
.clear
2011-10-16 23:07:10 +02:00
2011-10-27 08:46:21 +02:00
- else
%h2
2011-10-27 21:25:50 +02:00
Sorry, this snippet is no longer exists