gitlab-org--gitlab-foss/app/views/search/results/_merge_request.html.haml
2017-04-28 11:37:19 -05:00

14 lines
598 B
Text

.search-result-row
%h4
= link_to [merge_request.target_project.namespace.becomes(Namespace), merge_request.target_project, merge_request] do
%span.term.str-truncated= merge_request.title
- if merge_request.merged?
%span.label.label-primary.prepend-left-5 Merged
- elsif merge_request.closed?
%span.label.label-danger.prepend-left-5 Closed
.pull-right= merge_request.to_reference
- if merge_request.description.present?
.description.term
= search_md_sanitize(merge_request, :description)
%span.light
#{merge_request.project.name_with_namespace}