2011-10-09 00:36:38 +03:00
|
|
|
%ul#notes-list
|
|
|
|
- @notes.each do |note|
|
2011-10-15 00:05:41 +03:00
|
|
|
- next unless note.author
|
2011-10-09 00:36:38 +03:00
|
|
|
= render :partial => "notes/show", :locals => {:note => note}
|
|
|
|
|
|
|
|
%br
|
|
|
|
%br
|
|
|
|
- if can? current_user, :write_note, @project
|
|
|
|
= render "notes/form"
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
$('.delete-note').live('ajax:success', function() {
|
|
|
|
$(this).closest('li').fadeOut(); });
|
|
|
|
|
|
|
|
|