summaryrefslogtreecommitdiff
path: root/app/views/search/results/_note.html.haml
blob: f2327cd69ccfcb889655350e49e2ce748ca7dde9 (plain)
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
- project = note.project
.search-result-row
  %h5.note-search-caption.str-truncated
    %i.fa.fa-comment
    = link_to_member(project, note.author, avatar: false)
    commented on

    - if note.for_commit?
      = link_to project do
        = project.name_with_namespace
      ·
      = link_to project_commit_path(project, note.commit_id, anchor: dom_id(note)) do
        Commit #{note.commit_id[0..8]}
    - else
      = link_to project do
        = project.name_with_namespace
      ·
      %span #{note.noteable_type.titleize} ##{note.noteable.iid}
      ·
      = link_to [project, note.noteable, anchor: dom_id(note)]  do
        = note.noteable.title

  .note-search-result
    .term
      = preserve do
        = search_md_sanitize(markdown(note.note, {no_header_anchors: true}))