gitlab-org--gitlab-foss/app/views/search/results/_merge_request.html.haml
Nick Thomas dd159a750b Make search results use the markdown cache columns, treating them consistently
Truncato is introduced as a dependency to intelligently shorten the rendered
HTML to 200 characters; the previous approach could have resulted in invalid
HTML being rendered.
2016-10-07 02:54:26 +01:00

16 lines
606 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
.pull-right #{merge_request.to_reference}
- if merge_request.description.present?
.description.term
= preserve do
= search_md_sanitize(merge_request, :description)
%span.light
#{merge_request.project.name_with_namespace}
.pull-right
- if merge_request.merged?
%span.label.label-primary Merged
- elsif merge_request.closed?
%span.label.label-danger Closed