File: _note.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (32 lines) | stat: -rw-r--r-- 1,155 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
- return if !event.personal_snippet_note? && event.has_no_project_and_group?

= icon_for_profile_event(event)

= event_user_info(event)

.event-title.gl-flex
  = inline_event_icon(event)
  .event-title-block.gl-inline-block.gl-mr-2
    %span.event-type{ class: event.action_name + user_profile_activity_classes }
      = event.action_name
    %span= event_note_title_html(event)
    - title = note_target_title(event.target)
    - if title.present?
      %span.event-target-title.gl-text-ellipsis.gl-overflow-hidden{ dir: "auto" }
        = """.html_safe + title + "&quot".html_safe

    = render "events/event_scope", event: event

.event-body
  .event-note
    .md
      = first_line_in_markdown(event.target, :note, 150, project: event.project)
    - note = event.target
    - if note.attachment.url
      - if note.attachment.image?
        = link_to note.attachment.url, target: '_blank' do
          = image_tag note.attachment.url, class: 'note-image-attach col-lg-4'
      - else
        = link_to note.attachment.url, target: '_blank', class: 'note-file-attach' do
          = sprite_icon("paperclip")
          = note.attachment_identifier