25 lines
710 B
Plaintext
25 lines
710 B
Plaintext
.note#note{:id => note.id}
|
|
|
|
|
|
.left
|
|
|
|
.user
|
|
=image_tag (note.admin.avatar? ? note.admin.avatar.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 ?"
|
|
=raw 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");
|
|
}); |