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

27 lines
757 B
Text
Raw Normal View History

.event-title
%span.author_name= link_to_author event
%span.event_label
= event.action_name
= event_note_title_html(event)
at
- 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
- if note.attachment.url
2013-07-11 02:19:19 -04:00
- if note.attachment.image?
= link_to note.attachment.secure_url, target: '_blank' do
= image_tag note.attachment.secure_url, class: 'note-image-attach'
2013-07-11 02:19:19 -04:00
- else
= link_to note.attachment.secure_url, target: "_blank", class: 'note-file-attach' do
2014-10-01 18:21:29 -04:00
%i.fa.fa-paperclip
= note.attachment_identifier