2014-08-27 05:37:31 -04:00
|
|
|
- project = note.project
|
2016-04-13 05:25:42 -04:00
|
|
|
- note_url = Gitlab::UrlBuilder.build(note)
|
2016-07-29 15:20:00 -04:00
|
|
|
- noteable_identifier = note.noteable.try(:iid) || note.noteable.try(:id)
|
|
|
|
|
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
|
2016-03-31 03:21:20 -04:00
|
|
|
= link_to project.name_with_namespace, project
|
|
|
|
·
|
2014-08-27 05:37:31 -04:00
|
|
|
|
|
|
|
- if note.for_commit?
|
2016-07-29 15:20:00 -04:00
|
|
|
= link_to_if(noteable_identifier, "Commit #{truncate_sha(note.commit_id)}", note_url) do
|
|
|
|
= truncate_sha(note.commit_id)
|
|
|
|
%span.light Commit deleted
|
|
|
|
|
2014-08-27 05:37:31 -04:00
|
|
|
- else
|
2016-03-31 03:21:20 -04:00
|
|
|
%span #{note.noteable_type.titleize} ##{noteable_identifier}
|
2014-08-27 05:37:31 -04:00
|
|
|
·
|
2016-03-31 03:21:20 -04:00
|
|
|
= link_to note.noteable.title, note_url
|
2014-08-27 05:37:31 -04:00
|
|
|
|
|
|
|
.note-search-result
|
|
|
|
.term
|
2017-04-28 10:57:17 -04:00
|
|
|
= search_md_sanitize(note, :note)
|