gitlabhq/app/views/notes/_show.html.haml

16 lines
688 B
Plaintext
Raw Normal View History

2011-11-04 14:37:38 +01: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
= time_ago_in_words(note.updated_at)
- 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"
%div.note-title
2011-10-30 14:41:57 +01:00
= markdown(note.note)
2011-10-08 23:36:38 +02:00
- if note.attachment.url
Attachment:
2011-10-20 18:21:58 +02:00
= link_to note.attachment_identifier, note.attachment.url, :target => "_blank"
%br
2011-10-08 23:36:38 +02:00
.clear