2012-12-14 12:33:33 -05:00
|
|
|
.event-title
|
|
|
|
%span.author_name= link_to_author event
|
2015-02-13 06:00:12 -05:00
|
|
|
%span.event_label
|
|
|
|
= event.action_name
|
|
|
|
= event_note_title_html(event)
|
|
|
|
at
|
|
|
|
|
2012-12-14 12:33:33 -05:00
|
|
|
- if event.project
|
|
|
|
= link_to_project event.project
|
|
|
|
- else
|
|
|
|
= event.project_name
|
|
|
|
|
|
|
|
.event-body
|
2013-03-04 15:00:51 -05:00
|
|
|
.event-note
|
|
|
|
.md
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-comment-o.event-note-icon
|
2013-08-20 14:20:11 -04:00
|
|
|
= event_note(event.target.note)
|
2013-02-11 08:47:01 -05:00
|
|
|
- note = event.target
|
2013-02-11 12:25:06 -05:00
|
|
|
- if note.attachment.url
|
2013-07-11 02:19:19 -04:00
|
|
|
- if note.attachment.image?
|
2015-02-20 09:19:50 -05:00
|
|
|
= link_to note.attachment.url, target: '_blank' do
|
|
|
|
= image_tag note.attachment.url, class: 'note-image-attach'
|
2013-07-11 02:19:19 -04:00
|
|
|
- else
|
2015-02-20 09:19:50 -05:00
|
|
|
= link_to note.attachment.url, target: "_blank", class: 'note-file-attach' do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-paperclip
|
2013-02-11 12:25:06 -05:00
|
|
|
= note.attachment_identifier
|