debian-mirror-gitlab/app/views/search/results/_merge_request.html.haml

15 lines
656 B
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
.search-result-row
%h4
2020-11-24 15:15:51 +05:30
= link_to project_merge_request_path(merge_request.target_project, merge_request), data: {track_event: 'click_text', track_label: 'merge_request_title', track_property: 'search_result'} do
2015-04-26 12:48:37 +05:30
%span.term.str-truncated= merge_request.title
2017-08-17 22:00:37 +05:30
- if merge_request.merged?
2020-07-28 23:09:34 +05:30
%span.badge.badge-primary.gl-ml-2= _("Merged")
2017-08-17 22:00:37 +05:30
- elsif merge_request.closed?
2020-07-28 23:09:34 +05:30
%span.badge.badge-danger.gl-ml-2= _("Closed")
2018-11-08 19:23:39 +05:30
.float-right= merge_request.to_reference
2015-04-26 12:48:37 +05:30
- if merge_request.description.present?
.description.term
2020-11-24 15:15:51 +05:30
= search_md_sanitize(merge_request.description)
2015-04-26 12:48:37 +05:30
%span.light
2018-03-27 19:54:05 +05:30
#{merge_request.project.full_name}