2011-10-16 23:07:10 +02:00
|
|
|
%div
|
|
|
|
- if can? current_user, :write_snippet, @project
|
|
|
|
.left= link_to 'New Snippet', new_project_snippet_path(@project), :class => "lbutton vm"
|
|
|
|
|
|
|
|
%table.round-borders#snippets-table
|
|
|
|
%tr
|
|
|
|
%th Author
|
|
|
|
%th Title
|
|
|
|
%th File name
|
|
|
|
%th
|
2011-10-27 09:14:50 +02:00
|
|
|
= render @snippets.fresh
|
2011-10-16 23:07:10 +02:00
|
|
|
:javascript
|
2011-10-26 15:46:25 +02:00
|
|
|
$('.delete-snippet').live('ajax:success', function() {
|
|
|
|
$(this).closest('tr').fadeOut(); });
|