2011-12-08 00:35:57 +01:00
|
|
|
%h2.icon
|
|
|
|
%span>
|
|
|
|
Snippets
|
|
|
|
- if can? current_user, :write_snippet, @project
|
|
|
|
.right= link_to 'New Snippet', new_project_snippet_path(@project), :class => "grey-button append-bottom-10"
|
|
|
|
|
|
|
|
%table#snippets-table
|
|
|
|
= 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(); });
|