26 lines
745 B
Plaintext
26 lines
745 B
Plaintext
.note#note{:id => note.id}
|
|
|
|
|
|
.left
|
|
|
|
.user
|
|
|
|
=gravatar_image_tag(note.admin.email, :class => "avatar", :gravatar => {:default => "http://#{HOSTNAME}/assets/default_avatar.jpg"})
|
|
|
|
=note.admin.username
|
|
.date=l note.created_at, :format => :short
|
|
.right
|
|
.links
|
|
=link_to "modifier", edit_note_path(note), :remote => true
|
|
=link_to "suprimer", note_path(note), :remote => true, :method => :delete, :confirm => "Voulez-vous vraiment supprimer cette note ?"
|
|
=markdown note.message
|
|
|
|
.bottom
|
|
=render :partial => "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");
|
|
}); |