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

21 lines
639 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
.event-title
%span.author_name= link_to_author event
2016-08-24 12:49:21 +05:30
= event.action_name
= event_note_title_html(event)
2015-09-25 12:07:36 +05:30
2016-08-24 12:49:21 +05:30
= render "events/event_scope", event: event
2014-09-02 18:07:02 +05:30
.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