diff options
Diffstat (limited to 'app/views/search/results/_issue.html.haml')
-rw-r--r-- | app/views/search/results/_issue.html.haml | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/app/views/search/results/_issue.html.haml b/app/views/search/results/_issue.html.haml index 2f6024c3f2b..e0336d98f04 100644 --- a/app/views/search/results/_issue.html.haml +++ b/app/views/search/results/_issue.html.haml @@ -1,13 +1,14 @@ -.search-result-row - %h4 - = confidential_icon(issue) - = link_to project_issue_path(issue.project, issue) do - %span.term.str-truncated= issue.title +%div{ class: 'search-result-row gl-pb-3! gl-mt-5 gl-mb-0!' } + %span.gl-display-flex.gl-align-items-center - if issue.closed? - %span.badge.badge-danger.gl-ml-2= _("Closed") - .float-right ##{issue.iid} + %span.badge.badge-info.badge-pill.gl-badge.sm= _("Closed") + - else + %span.badge.badge-success.badge-pill.gl-badge.sm= _("Open") + = sprite_icon('eye-slash', css_class: 'gl-text-gray-500 gl-ml-2') if issue.confidential? + = link_to project_issue_path(issue.project, issue), data: { track_event: 'click_text', track_label: 'issue_title', track_property: 'search_result' }, class: 'gl-w-full' do + %span.term.str-truncated.gl-font-weight-bold.gl-ml-2= issue.title + .gl-text-gray-500.gl-my-3 + = sprintf(s_(' %{project_name}#%{issue_iid} · opened %{issue_created} by %{author}'), { project_name: issue.project.full_name, issue_iid: issue.iid, issue_created: time_ago_with_tooltip(issue.created_at, placement: 'bottom'), author: link_to_member(@project, issue.author, avatar: false) }).html_safe - if issue.description.present? - .description.term - = search_md_sanitize(issue, :description) - %span.light - #{issue.project.full_name} + .description.term.col-sm-10.gl-px-0 + = truncate(issue.description, length: 200) |