debian-mirror-gitlab/app/views/events/event/_note.html.haml

27 lines
736 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
.event-title
%span.author_name= link_to_author event
2015-04-26 12:48:37 +05:30
%span.event_label
= event.action_name
= event_note_title_html(event)
at
2014-09-02 18:07:02 +05:30
- if event.project
= link_to_project event.project
- else
= event.project_name
.event-body
.event-note
.md
2015-04-26 12:48:37 +05:30
%i.fa.fa-comment-o.event-note-icon
2014-09-02 18:07:02 +05:30
= event_note(event.target.note)
- 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
2015-04-26 12:48:37 +05:30
= link_to note.attachment.url, target: "_blank", class: 'note-file-attach' do
%i.fa.fa-paperclip
2014-09-02 18:07:02 +05:30
= note.attachment_identifier