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

23 lines
734 B
Plaintext
Raw Normal View History

.event-title
%span.author_name= link_to_author event
2013-06-07 15:46:33 +00:00
%span.event_label commented on #{event_note_title_html(event)} at
- if event.project
= link_to_project event.project
- else
= event.project_name
.event-body
2013-03-04 20:00:51 +00:00
.event-note
.md
2014-10-01 22:21:29 +00:00
%i.fa.fa-comment-o.event-note-icon
2013-08-20 18:20:11 +00:00
= event_note(event.target.note)
2013-02-11 13:47:01 +00:00
- note = event.target
- if note.attachment.url
2013-07-11 06:19:19 +00: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 06:19:19 +00:00
- else
= link_to note.attachment.secure_url, target: "_blank", class: 'note-file-attach' do
2014-10-01 22:21:29 +00:00
%i.fa.fa-paperclip
= note.attachment_identifier