Commit e31f5aa8 authored by Mark Florian's avatar Mark Florian

Merge branch...

Merge branch '344394-make-badges-in-ee-app-views-search-results-_epic-html-haml-pajamas-compliant' into 'master'

Use Rails helper for epic search results badges

See merge request gitlab-org/gitlab!76379
parents 42674cf6 4ceb24f0
%div{ class: 'search-result-row gl-pb-3! gl-mt-5 gl-mb-0!' } %div{ class: 'search-result-row gl-pb-3! gl-mt-5 gl-mb-0!' }
%span.gl-display-flex.gl-align-items-center %span.gl-display-flex.gl-align-items-center
- if epic.closed? - if epic.closed?
%span.badge.badge-info.badge-pill.gl-badge.sm= _("Closed") = gl_badge_tag _('Closed'), variant: :info, size: :sm
- else - else
%span.badge.badge-success.badge-pill.gl-badge.sm= _("Open") = gl_badge_tag _('Open'), variant: :success, size: :sm
= sprite_icon('eye-slash', css_class: 'gl-text-gray-500 gl-ml-2') if epic.confidential? = sprite_icon('eye-slash', css_class: 'gl-text-gray-500 gl-ml-2') if epic.confidential?
= link_to group_epic_path(epic.group, epic), data: { track_action: 'click_text', track_label: 'epic_title', track_property: 'search_result' }, class: 'gl-w-full' do = link_to group_epic_path(epic.group, epic), data: { track_action: 'click_text', track_label: 'epic_title', track_property: 'search_result' }, class: 'gl-w-full' do
%span.term.str-truncated.gl-font-weight-bold.gl-ml-2= epic.title %span.term.str-truncated.gl-font-weight-bold.gl-ml-2= epic.title
......
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