2014-08-28 04:06:19 -04:00
|
|
|
.search-result-row
|
2014-08-27 04:55:42 -04:00
|
|
|
%h4
|
2019-05-22 00:04:19 -04:00
|
|
|
= link_to namespace_project_merge_request_path(merge_request.target_project.namespace.becomes(Namespace), merge_request.target_project, merge_request) do
|
2014-08-27 04:55:42 -04:00
|
|
|
%span.term.str-truncated= merge_request.title
|
2017-04-14 15:16:04 -04:00
|
|
|
- if merge_request.merged?
|
2018-06-14 00:11:10 -04:00
|
|
|
%span.badge.badge-primary.prepend-left-5= _("Merged")
|
2017-04-14 15:16:04 -04:00
|
|
|
- elsif merge_request.closed?
|
2018-06-14 00:11:10 -04:00
|
|
|
%span.badge.badge-danger.prepend-left-5= _("Closed")
|
2018-04-09 13:42:45 -04:00
|
|
|
.float-right= merge_request.to_reference
|
2014-08-27 05:54:18 -04:00
|
|
|
- if merge_request.description.present?
|
|
|
|
.description.term
|
2017-04-28 10:57:17 -04:00
|
|
|
= search_md_sanitize(merge_request, :description)
|
2014-08-27 04:55:42 -04:00
|
|
|
%span.light
|
2018-03-05 08:45:35 -05:00
|
|
|
#{merge_request.project.full_name}
|