2013-06-29 23:10:44 +02:00

25 lines
711 B
Plaintext

.note#note{:id => note.id}
.left
.user
=image_tag (note.admin.file? ? note.admin.file.square.url : ""), :class => "avatar"
=note.admin.username
.date=l note.created_at, :format => :short
.right
.links
=link_to "modifier", edit_admin_note_path(note), :remote => true
=link_to "suprimer", admin_note_path(note), :remote => true, :method => :delete, :confirm => "Voulez-vous vraiment supprimer cette note ?"
=markdown note.message
.bottom
=render :partial => "admin/note_files/form", :locals => {:note => note}
#note_files.note_files{:id => note.id}=render note.note_files
:javascript
$(".note img").each(function(){
$(this).closest("p").addClass("large");
});