debian-mirror-gitlab/app/views/search/results/_note.html.haml

27 lines
794 B
Text
Raw Normal View History

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
2016-06-02 11:05:42 +05:30
= link_to project.name_with_namespace, project
·
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
= preserve do
2016-11-03 12:29:30 +05:30
= search_md_sanitize(note, :note)