BigW Consortium Gitlab

_note.html.haml 735 Bytes
Newer Older
1 2
.event-title
  %span.author_name= link_to_author event
3
  %span.event_label commented on #{event_note_title_html(event)} at
4 5 6 7 8 9
  - if event.project
    = link_to_project event.project
  - else
    = event.project_name

.event-body
10 11 12
  .event-note
    .md
      %i.icon-comment-alt.event-note-icon
13
      = event_note(event.target.note)
14
    - note = event.target
15
    - if note.attachment.url
16
      - if note.attachment.image?
17 18
        = link_to note.attachment.secure_url, target: '_blank' do
          = image_tag note.attachment.secure_url, class: 'note-image-attach'
19 20
      - else
        = link_to note.attachment.secure_url, target: "_blank", class: 'note-file-attach' do
21 22
          %i.icon-paper-clip
          = note.attachment_identifier