summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-04-15 16:32:25 +0100
committerPhil Hughes <me@iamphill.com>2016-04-26 09:03:04 +0100
commit3b5879e50c11baf3039512107c114c595baaf14e (patch)
tree6d64b1245aaf05df600a309d5ab1a11b73396ec3
parentd369d529380167ac926ec916eea85419ee65e5b9 (diff)
downloadgitlab-ce-3b5879e50c11baf3039512107c114c595baaf14e.tar.gz
Truncate issue description
-rw-r--r--app/views/search/results/_issue.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/search/results/_issue.html.haml b/app/views/search/results/_issue.html.haml
index 710f5613c81..640890fbe92 100644
--- a/app/views/search/results/_issue.html.haml
+++ b/app/views/search/results/_issue.html.haml
@@ -7,7 +7,7 @@
- if issue.description.present?
.description.term
= preserve do
- = search_md_sanitize(markdown(issue.description, { project: issue.project }))
+ = search_md_sanitize(markdown(truncate(issue.description, length: 200, separator: " "), { project: issue.project }))
%span.light
#{issue.project.name_with_namespace}
- if issue.closed?