diff options
Diffstat (limited to 'app/views/snippets')
-rw-r--r-- | app/views/snippets/show.html.haml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml index d29e0f8c7ab..bb444efec79 100644 --- a/app/views/snippets/show.html.haml +++ b/app/views/snippets/show.html.haml @@ -15,6 +15,7 @@ = link_to 'Edit', edit_project_snippet_path(@project, @snippet), :class => "lbutton positive" - if can?(current_user, :admin_snippet, @project) || @snippet.author == current_user = link_to 'Destroy', [@project, @snippet], :confirm => 'Are you sure?', :method => :delete, :class => "lbutton delete-snippet negative", :id => "destroy_snippet_#{@snippet.id}" +.clear %br .snippet_notes= render "notes/notes" |