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

12 lines
356 B
Plaintext
Raw Normal View History

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