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

23 lines
740 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)
- noteable_identifier = note.noteable.try(:iid) || note.noteable.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-06-02 11:05:42 +05:30
= link_to "Commit #{truncate_sha(note.commit_id)}", note_url
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
= search_md_sanitize(markdown(note.note, {no_header_anchors: true, author: note.author}))