2011-10-08 21:36:38 +00:00
|
|
|
%li{:id => dom_id(note)}
|
|
|
|
%div.note_author
|
|
|
|
= image_tag gravatar_icon(note.author.email), :class => "left", :width => 40, :style => "padding-right:5px;"
|
2011-10-20 16:21:58 +00:00
|
|
|
%div.note_content.left
|
2011-10-27 19:57:10 +00:00
|
|
|
= raw RDiscount.new(note.note, :smart, :filter_html).to_html
|
2011-10-08 21:36:38 +00:00
|
|
|
- if note.attachment.url
|
|
|
|
Attachment:
|
2011-10-20 16:21:58 +00:00
|
|
|
= link_to note.attachment_identifier, note.attachment.url, :target => "_blank"
|
2011-10-08 21:36:38 +00:00
|
|
|
%br
|
2011-10-20 16:21:58 +00:00
|
|
|
%span.author= note.author.name
|
|
|
|
%cite.ago
|
2011-10-08 21:36:38 +00:00
|
|
|
= time_ago_in_words(note.updated_at)
|
|
|
|
ago
|
2011-10-20 16:21:58 +00:00
|
|
|
%br
|
2011-10-08 21:36:38 +00:00
|
|
|
- if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project)
|
|
|
|
= link_to 'Remove', [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "lbutton delete-note right negative"
|
|
|
|
.clear
|