_show.html.haml 712 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
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
5
    %cite.cgray
gitlabhq's avatar
gitlabhq committed
6 7
      = time_ago_in_words(note.updated_at)
      ago
gitlabhq's avatar
gitlabhq committed
8
    - if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project)
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
9
      = link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note right"
gitlabhq's avatar
gitlabhq committed
10 11
    
  %div.note-title
Nihad Abbasov's avatar
Nihad Abbasov committed
12
    = markdown(note.note)
gitlabhq's avatar
gitlabhq committed
13
    - if note.attachment.url
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
14 15 16
      .right
        %span.file
        = link_to note.attachment_identifier, note.attachment.url, :target => "_blank"
gitlabhq's avatar
gitlabhq committed
17
  .clear