gitlabhq/app/views/snippets/index.html.haml
Dmitriy Zaporozhets c1c64d985e css refactor
2011-11-12 14:45:32 +02:00

12 lines
357 B
Plaintext

%div
- if can? current_user, :write_snippet, @project
= link_to 'New Snippet', new_project_snippet_path(@project), :class => "button append-bottom-10"
%table.round-borders#snippets-table
%thead
%th
= render @snippets.fresh
:javascript
$('.delete-snippet').live('ajax:success', function() {
$(this).closest('tr').fadeOut(); });