2017-08-17 22:00:37 +05:30
|
|
|
= icon_for_profile_event(event)
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.event-title
|
|
|
|
%span.author_name= link_to_author event
|
2016-08-24 12:49:21 +05:30
|
|
|
= event.action_name
|
|
|
|
= event_note_title_html(event)
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
= render "events/event_scope", event: event
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
.event-body
|
|
|
|
.event-note
|
|
|
|
.md
|
2018-03-17 18:26:18 +05:30
|
|
|
= first_line_in_markdown(event.target, :note, 150, project: event.project)
|
2014-09-02 18:07:02 +05:30
|
|
|
- note = event.target
|
|
|
|
- if note.attachment.url
|
|
|
|
- if note.attachment.image?
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to note.attachment.url, target: '_blank' do
|
|
|
|
= image_tag note.attachment.url, class: 'note-image-attach'
|
2014-09-02 18:07:02 +05:30
|
|
|
- else
|
2017-08-17 22:00:37 +05:30
|
|
|
= link_to note.attachment.url, target: '_blank', class: 'note-file-attach' do
|
2015-04-26 12:48:37 +05:30
|
|
|
%i.fa.fa-paperclip
|
2014-09-02 18:07:02 +05:30
|
|
|
= note.attachment_identifier
|