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

20 lines
802 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
2012-06-15 17:53:00 +02:00
= link_to "##{dom_id(note)}", name: dom_id(note) do
%cite.cgray
= time_ago_in_words(note.updated_at)
ago
2011-11-04 14:37:38 +01:00
- 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"
2011-11-15 09:34:30 +01:00
2011-11-04 14:37:38 +01:00
%div.note-title
= preserve do
= markdown(note.note)
2011-10-08 23:36:38 +02:00
- if note.attachment.url
2011-11-06 14:52:23 +01:00
.right
2012-03-24 18:36:14 +01:00
%div.file
= link_to note.attachment_identifier, note.attachment.url, :target => "_blank"
2011-10-08 23:36:38 +02:00
.clear