gitlabhq/app/views/snippets/index.html.haml
Dmitriy Zaporozhets 0accbaae15 snippets restyle
2011-11-26 00:19:14 +02:00

10 lines
326 B
Plaintext

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