_show.html.haml 710 Bytes
Newer Older
gitlabhq's avatar
gitlabhq committed
1 2 3 4
%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
gitlabhq's avatar
gitlabhq committed
5 6 7
    %cite
      = time_ago_in_words(note.updated_at)
      ago
gitlabhq's avatar
gitlabhq committed
8 9 10 11
    - 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
Nihad Abbasov's avatar
Nihad Abbasov committed
12
    = markdown(note.note)
gitlabhq's avatar
gitlabhq committed
13 14
    - if note.attachment.url
      Attachment:
gitlabhq's avatar
gitlabhq committed
15 16
      = link_to note.attachment_identifier, note.attachment.url, :target => "_blank"
    %br
gitlabhq's avatar
gitlabhq committed
17
  .clear