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

28 lines
923 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
= icon_for_profile_event(event)
2018-12-13 13:39:08 +05:30
= event_user_info(event)
.event-title.d-flex.flex-wrap
= inline_event_icon(event)
%span.event-type.d-inline-block.append-right-4{ class: event.action_name }
= event.action_name
2016-08-24 12:49:21 +05:30
= event_note_title_html(event)
2019-07-31 22:56:46 +05:30
%span.event-target-title.append-right-4{ dir: "auto" }
= """.html_safe + event.target.title + "&quot".html_safe
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
2018-03-17 18:26:18 +05:30
= first_line_in_markdown(event.target, :note, 150, 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
2019-03-02 22:35:43 +05:30
= link_to note.attachment.url, target: '_blank', class: 'note-file-attach' do
2015-04-26 12:48:37 +05:30
%i.fa.fa-paperclip
2014-09-02 18:07:02 +05:30
= note.attachment_identifier