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

12 lines
357 B
Text
Raw Normal View History

2011-10-17 00:07:10 +03:00
%div
- if can? current_user, :write_snippet, @project
2011-11-12 14:45:32 +02:00
= link_to 'New Snippet', new_project_snippet_path(@project), :class => "button append-bottom-10"
2011-10-17 00:07:10 +03:00
%table.round-borders#snippets-table
2011-11-12 12:41:34 +02:00
%thead
%th
2011-10-27 12:14:50 +05:00
= render @snippets.fresh
2011-10-17 00:07:10 +03:00
:javascript
$('.delete-snippet').live('ajax:success', function() {
$(this).closest('tr').fadeOut(); });