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

26 lines
715 B
Plaintext
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 20:00:51 +00:00
.event-note
.md
= event_note(event.target.note, project: event.project)
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?
2015-02-20 14:19:50 +00:00
= link_to note.attachment.url, target: '_blank' do
= image_tag note.attachment.url, class: 'note-image-attach'
2013-07-11 06:19:19 +00:00
- else
2015-02-20 14:19:50 +00:00
= link_to note.attachment.url, target: "_blank", class: 'note-file-attach' do
2014-10-01 22:21:29 +00:00
%i.fa.fa-paperclip
= note.attachment_identifier