BigW Consortium Gitlab

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

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
      = event_note(event.target.note, project: event.project)
17
    - note = event.target
18
    - if note.attachment.url
19
      - if note.attachment.image?
20 21
        = link_to note.attachment.url, target: '_blank' do
          = image_tag note.attachment.url, class: 'note-image-attach'
22
      - else
23
        = link_to note.attachment.url, target: "_blank", class: 'note-file-attach' do
24
          %i.fa.fa-paperclip
25
          = note.attachment_identifier