summaryrefslogtreecommitdiff
path: root/app/views/notes/_show.html.haml
blob: 2b0a6d2ebcd37d5af31c277a5921e1e74ec1c8f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%li{:id => dom_id(note)}
  %div.note_author
    = image_tag gravatar_icon(note.author.email), :class => "left", :width => 40, :style => "padding-right:5px;"
  %div.note_content
    = simple_format(html_escape(note.note))
    - if note.attachment.url
      Attachment:
      = link_to note.attachment_identifier, note.attachment.url
      %br
    %span
      %span
        [ #{note.author.name} ]
       
      = time_ago_in_words(note.updated_at)
      ago
      %br
  - 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"
  .clear