2014-08-27 05:37:31 -04:00
|
|
|
- project = note.project
|
2014-08-28 04:06:19 -04:00
|
|
|
.search-result-row
|
|
|
|
%h5.note-search-caption.str-truncated
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-comment
|
2014-08-27 05:37:31 -04:00
|
|
|
= link_to_member(project, note.author, avatar: false)
|
|
|
|
commented on
|
|
|
|
|
|
|
|
- if note.for_commit?
|
|
|
|
= link_to project do
|
|
|
|
= project.name_with_namespace
|
|
|
|
·
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to namespace_project_commit_path(project.namespace, project, note.commit_id, anchor: dom_id(note)) do
|
2014-10-10 08:39:48 -04:00
|
|
|
Commit #{truncate_sha(note.commit_id)}
|
2014-08-27 05:37:31 -04:00
|
|
|
- else
|
|
|
|
= link_to project do
|
|
|
|
= project.name_with_namespace
|
|
|
|
·
|
|
|
|
%span #{note.noteable_type.titleize} ##{note.noteable.iid}
|
|
|
|
·
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to [project.namespace.becomes(Namespace), project, note.noteable, anchor: dom_id(note)] do
|
2014-08-27 05:37:31 -04:00
|
|
|
= note.noteable.title
|
|
|
|
|
|
|
|
.note-search-result
|
|
|
|
.term
|
|
|
|
= preserve do
|
|
|
|
= search_md_sanitize(markdown(note.note, {no_header_anchors: true}))
|