gitlab-org--gitlab-foss/app/views/notes/_show.html.haml

18 lines
708 B
Text
Raw Normal View History

2011-11-04 09:37:38 -04:00
%li{:id => dom_id(note), :class => "note"}
= image_tag gravatar_icon(note.author.email), :class => "left", :width => 40, :style => "padding-right:5px;"
%div.note-author
%strong= note.author_name
2011-11-06 08:52:23 -05:00
%cite.cgray
2011-11-04 12:20:52 -04:00
= 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)
2011-11-06 08:52:23 -05:00
= link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note right"
2011-11-15 03:34:30 -05:00
2011-11-04 09:37:38 -04:00
%div.note-title
2011-10-30 09:41:57 -04:00
= markdown(note.note)
2011-10-08 17:36:38 -04:00
- if note.attachment.url
2011-11-06 08:52:23 -05:00
.right
%span.file
= link_to note.attachment_identifier, note.attachment.url, :target => "_blank"
2011-10-08 17:36:38 -04:00
.clear