2017-04-11 14:24:04 -04:00
|
|
|
= icon_for_profile_event(event)
|
2017-03-31 16:39:31 -04:00
|
|
|
|
2018-11-06 09:33:42 -05:00
|
|
|
= event_user_info(event)
|
|
|
|
|
|
|
|
.event-title.d-flex.flex-wrap
|
|
|
|
= inline_event_icon(event)
|
|
|
|
%span.event-type.d-inline-block.append-right-4{ class: event.action_name }
|
|
|
|
= event.action_name
|
2016-07-04 09:19:07 -04:00
|
|
|
= event_note_title_html(event)
|
2018-11-06 09:33:42 -05:00
|
|
|
%span.event-target-title.append-right-4= """.html_safe + event.target.title + """.html_safe
|
2015-09-04 05:56:32 -04:00
|
|
|
|
2016-07-04 09:19:07 -04:00
|
|
|
= render "events/event_scope", event: event
|
2012-12-14 12:33:33 -05:00
|
|
|
|
|
|
|
.event-body
|
2013-03-04 15:00:51 -05:00
|
|
|
.event-note
|
|
|
|
.md
|
2017-11-06 11:52:56 -05:00
|
|
|
= first_line_in_markdown(event.target, :note, 150, project: event.project)
|
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
|
2017-03-15 17:21:48 -04: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
|