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

26 lines
715 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
2015-09-25 12:07:36 +05:30
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-09-11 14:41:01 +05:30
= event_note(event.target.note, project: event.project)
2014-09-02 18:07:02 +05:30
- 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