2012-08-10 18:07:50 -04:00
|
|
|
%li{id: dom_id(note), class: "note"}
|
2012-08-18 23:53:58 +03:00
|
|
|
= image_tag gravatar_icon(note.author.email), class: "avatar s32"
|
2011-11-04 09:37:38 -04:00
|
|
|
%div.note-author
|
|
|
|
%strong= note.author_name
|
2012-06-15 18:53:00 +03:00
|
|
|
= link_to "##{dom_id(note)}", name: dom_id(note) do
|
|
|
|
%cite.cgray
|
|
|
|
= time_ago_in_words(note.updated_at)
|
|
|
|
ago
|
2011-11-04 09:37:38 -04:00
|
|
|
- if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project)
|
2012-08-10 18:07:50 -04:00
|
|
|
= link_to [@project, note], confirm: 'Are you sure?', method: :delete, remote: true, class: "cred delete-note btn very_small" do
|
2012-07-29 01:34:51 +03:00
|
|
|
%i.icon-trash
|
|
|
|
Remove
|
2011-11-15 12:34:30 +04:00
|
|
|
|
2011-11-04 09:37:38 -04:00
|
|
|
%div.note-title
|
2012-04-11 19:36:52 +00:00
|
|
|
= preserve do
|
|
|
|
= markdown(note.note)
|
2011-10-09 00:36:38 +03:00
|
|
|
- if note.attachment.url
|
2011-11-06 15:52:23 +02:00
|
|
|
.right
|
2012-03-24 14:36:14 -03:00
|
|
|
%div.file
|
2012-08-10 18:07:50 -04:00
|
|
|
= link_to note.attachment_identifier, note.attachment.url, target: "_blank"
|
2011-10-09 00:36:38 +03:00
|
|
|
.clear
|