2021-09-30 23:02:18 +05:30
|
|
|
%div{ class: 'search-result-row gl-display-flex gl-sm-flex-direction-row gl-flex-direction-column gl-align-items-center gl-pb-3! gl-mt-5 gl-mb-0!' }
|
|
|
|
.col-sm-9
|
|
|
|
%span.gl-display-flex.gl-align-items-center
|
2022-01-26 12:08:38 +05:30
|
|
|
= gl_badge_tag issuable_state_text(issuable), variant: issuable_state_to_badge_class(issuable), size: :sm
|
2021-09-30 23:02:18 +05:30
|
|
|
= sprite_icon('eye-slash', css_class: 'gl-text-gray-500 gl-ml-2') if issuable.respond_to?(:confidential?) && issuable.confidential?
|
2021-11-11 11:23:49 +05:30
|
|
|
= link_to issuable_path(issuable), data: { track_action: 'click_text', track_label: "#{issuable.class.name.downcase}_title", track_property: 'search_result' }, class: 'gl-w-full' do
|
2021-09-30 23:02:18 +05:30
|
|
|
%span.term.str-truncated.gl-font-weight-bold.gl-ml-2= issuable.title
|
|
|
|
.gl-text-gray-500.gl-my-3
|
|
|
|
= issuable_project_reference(issuable)
|
|
|
|
·
|
|
|
|
= sprintf(s_('created %{issuable_created} by %{author}'), { issuable_created: time_ago_with_tooltip(issuable.created_at, placement: 'bottom'), author: link_to_member(@project, issuable.author, avatar: false) }).html_safe
|
|
|
|
.description.term.gl-px-0
|
|
|
|
= highlight_and_truncate_issuable(issuable, @search_term, @search_highlight)
|
|
|
|
.col-sm-3.gl-mt-3.gl-sm-mt-0.gl-text-right
|
2021-10-27 15:23:28 +05:30
|
|
|
- if issuable.respond_to?(:upvotes_count) && issuable.upvotes_count > 0
|
2021-11-18 22:05:49 +05:30
|
|
|
%li.issuable-upvotes.gl-list-style-none
|
|
|
|
%span.has-tooltip{ title: _('Upvotes') }
|
|
|
|
= sprite_icon('thumb-up', css_class: "gl-vertical-align-middle")
|
|
|
|
= issuable.upvotes_count
|
2021-09-30 23:02:18 +05:30
|
|
|
%span.gl-text-gray-500= sprintf(s_('updated %{time_ago}'), { time_ago: time_ago_with_tooltip(issuable.updated_at, placement: 'bottom') }).html_safe
|