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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
1.1 KiB
Text
Raw Normal View History

2022-07-16 23:28:13 +05:30
- return if !event.personal_snippet_note? && event.has_no_project_and_group?
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)
2020-07-28 23:09:34 +05:30
%span.event-type.d-inline-block.gl-mr-2{ class: event.action_name }
2018-12-13 13:39:08 +05:30
= event.action_name
2016-08-24 12:49:21 +05:30
= event_note_title_html(event)
2020-06-23 00:09:42 +05:30
- title = note_target_title(event.target)
- if title.present?
2020-11-24 15:15:51 +05:30
%span.event-target-title.gl-text-overflow-ellipsis.gl-overflow-hidden.gl-mr-2{ dir: "auto" }
2020-06-23 00:09:42 +05:30
= """.html_safe + 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
2021-04-29 21:17:54 +05:30
= image_tag note.attachment.url, class: 'note-image-attach col-lg-4'
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
2021-01-29 00:20:46 +05:30
= sprite_icon("paperclip")
2014-09-02 18:07:02 +05:30
= note.attachment_identifier