2015-04-26 12:48:37 +05:30
|
|
|
- project = note.project
|
2016-06-02 11:05:42 +05:30
|
|
|
- note_url = Gitlab::UrlBuilder.build(note)
|
2016-09-13 17:45:13 +05:30
|
|
|
- noteable_identifier = note.noteable.try(:iid) || note.noteable.try(:id)
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.search-result-row
|
|
|
|
%h5.note-search-caption.str-truncated
|
|
|
|
%i.fa.fa-comment
|
|
|
|
= link_to_member(project, note.author, avatar: false)
|
|
|
|
commented on
|
2018-03-27 19:54:05 +05:30
|
|
|
= link_to project.full_name, project
|
2016-06-02 11:05:42 +05:30
|
|
|
·
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
- if note.for_commit?
|
2016-09-13 17:45:13 +05:30
|
|
|
= link_to_if(noteable_identifier, "Commit #{truncate_sha(note.commit_id)}", note_url) do
|
|
|
|
= truncate_sha(note.commit_id)
|
|
|
|
%span.light Commit deleted
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
- else
|
2016-06-02 11:05:42 +05:30
|
|
|
%span #{note.noteable_type.titleize} ##{noteable_identifier}
|
2015-04-26 12:48:37 +05:30
|
|
|
·
|
2016-06-02 11:05:42 +05:30
|
|
|
= link_to note.noteable.title, note_url
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
.note-search-result
|
|
|
|
.term
|
2017-08-17 22:00:37 +05:30
|
|
|
= search_md_sanitize(note, :note)
|