BigW Consortium Gitlab

_note.html.haml 794 Bytes
Newer Older
1
- project = note.project
2
- note_url = Gitlab::UrlBuilder.build(note)
3 4
- noteable_identifier = note.noteable.try(:iid) || note.noteable.try(:id)

5 6
.search-result-row
  %h5.note-search-caption.str-truncated
7
    %i.fa.fa-comment
8 9
    = link_to_member(project, note.author, avatar: false)
    commented on
10 11
    = link_to project.name_with_namespace, project
    ·
12 13

    - if note.for_commit?
14 15 16 17
      = link_to_if(noteable_identifier, "Commit #{truncate_sha(note.commit_id)}", note_url) do
        = truncate_sha(note.commit_id)
        %span.light Commit deleted

18
    - else
19
      %span #{note.noteable_type.titleize} ##{noteable_identifier}
20
      ·
21
      = link_to note.noteable.title, note_url
22 23 24 25

  .note-search-result
    .term
      = preserve do
26
        = search_md_sanitize(note, :note)