gitlab-org--gitlab-foss/app/views/events/event/_note.html.haml

27 lines
904 B
Text
Raw Normal View History

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
= 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 + "&quot".html_safe
= render "events/event_scope", event: event
.event-body
2013-03-04 15:00:51 -05:00
.event-note
.md
= first_line_in_markdown(event.target, :note, 150, project: event.project)
2013-02-11 08:47:01 -05:00
- note = event.target
- 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
= link_to note.attachment.url, target: '_blank', class: 'note-file-attach' do
2014-10-01 18:21:29 -04:00
%i.fa.fa-paperclip
= note.attachment_identifier