Commit 4ceb24f0 authored by John Hope's avatar John Hope

Use pajamas helper instead of haml badge

parent 5b91e94c
%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