dd159a750b
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.
9 lines
304 B
Text
9 lines
304 B
Text
.search-result-row
|
|
%h4
|
|
= link_to [milestone.project.namespace.becomes(Namespace), milestone.project, milestone] do
|
|
%span.term.str-truncated= milestone.title
|
|
|
|
- if milestone.description.present?
|
|
.description.term
|
|
= preserve do
|
|
= search_md_sanitize(milestone, :description)
|