Commit 4c5642b4 authored by Dylan Griffith's avatar Dylan Griffith Committed by Sarah Groff Hennigh-Palermo

Show the comment authored time in comment search results

This uses the same HAML as in `app/views/shared/notes/_note.html.haml`
to show the note authored time.
parent 91df75d9
...@@ -20,6 +20,11 @@ ...@@ -20,6 +20,11 @@
· ·
= link_to note.noteable.title, note_url, data: {track_event: 'click_text', track_label: 'noteable_title', track_property: 'search_result'} = link_to note.noteable.title, note_url, data: {track_event: 'click_text', track_label: 'noteable_title', track_property: 'search_result'}
%span.note-headline-light.note-headline-meta
%span.system-note-separator
·
%span.system-note-separator= time_ago_with_tooltip(note.created_at, placement: 'bottom', html_class: 'note-created-ago')
.note-search-result .note-search-result
.term .term
= search_md_sanitize(note.note) = search_md_sanitize(note.note)
---
title: Show the comment authored time in comment search results
merge_request: 40472
author:
type: added
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment