_note.html.haml 760 Bytes
Newer Older
1 2
.event-title
  %span.author_name= link_to_author event
3 4 5 6 7
  %span.event_label
    = event.action_name
    = event_note_title_html(event)
    at
    
8 9 10 11 12 13
  - if event.project
    = link_to_project event.project
  - else
    = event.project_name

.event-body
14 15
  .event-note
    .md
16
      %i.fa.fa-comment-o.event-note-icon
17
      = event_note(event.target.note, project: event.project)
18
    - note = event.target
19
    - if note.attachment.url
20
      - if note.attachment.image?
Douwe Maan's avatar
Douwe Maan committed
21 22
        = link_to note.attachment.url, target: '_blank' do
          = image_tag note.attachment.url, class: 'note-image-attach'
23
      - else
Douwe Maan's avatar
Douwe Maan committed
24
        = link_to note.attachment.url, target: "_blank", class: 'note-file-attach' do
25
          %i.fa.fa-paperclip
26
          = note.attachment_identifier