gitlabhq/app/views/notes/_show.html.haml
2012-03-24 14:36:14 -03:00

18 lines
720 B
Plaintext

%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
%cite.cgray
= time_ago_in_words(note.updated_at)
ago
- if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project)
%strong= link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note btn small"
%div.note-title
= markdown(note.note)
- if note.attachment.url
.right
%div.file
= link_to note.attachment_identifier, note.attachment.url, :target => "_blank"
.clear