_note.html.haml 640 Bytes
Newer Older
1 2
.event-title
  %span.author_name= link_to_author event
3 4
  = event.action_name
  = event_note_title_html(event)
5

6
  = render "events/event_scope", event: event
7 8

.event-body
9 10
  .event-note
    .md
11
      = event_note(event.target.note, project: event.project)
12
    - note = event.target
13
    - if note.attachment.url
14
      - if note.attachment.image?
Douwe Maan's avatar
Douwe Maan committed
15 16
        = link_to note.attachment.url, target: '_blank' do
          = image_tag note.attachment.url, class: 'note-image-attach'
17
      - else
18
        = link_to note.attachment.url, target: '_blank',  class: 'note-file-attach' do
19
          %i.fa.fa-paperclip
20
          = note.attachment_identifier