summaryrefslogtreecommitdiff
path: root/app/views/snippets/index.html.haml
blob: 6e5dbde5bb1b7e4b57bb34c016757f667d58a44d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
%div
  - if can? current_user, :write_snippet, @project
    .left= link_to 'New Snippet', new_project_snippet_path(@project), :class => "lbutton vm"

  %table.round-borders#snippets-table
    %tr
      %th Author
      %th Title
      %th File name
      %th
    = render @snippets
:javascript
  $('.delete-snippet').live('ajax:success', function() {  
    $(this).closest('tr').fadeOut(); });