summaryrefslogtreecommitdiff
path: root/app/helpers/events_helper.rb
diff options
context:
space:
mode:
authorVinnie Okada <vokada@mrvinn.com>2014-10-11 21:17:02 -0500
committerVinnie Okada <vokada@mrvinn.com>2014-10-12 14:52:17 -0500
commit5b2a42a091b2300ae1962b158b1496ac160c9e0f (patch)
treebe2cc218ddeca791473ed1feed7f83d5c83981f3 /app/helpers/events_helper.rb
parent66dd61ef0f1f98f860bdef5aa2cdb1c6f2e1f83f (diff)
downloadgitlab-ce-5b2a42a091b2300ae1962b158b1496ac160c9e0f.tar.gz
Preserve link href in truncated note view
Notes on the dashboard views are truncated to 150 characters; this change ensures that when a link's text is truncated it still points to the correct URL.
Diffstat (limited to 'app/helpers/events_helper.rb')
-rw-r--r--app/helpers/events_helper.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb
index 6aeab7bb8ce..100dde10273 100644
--- a/app/helpers/events_helper.rb
+++ b/app/helpers/events_helper.rb
@@ -136,9 +136,8 @@ module EventsHelper
end
def event_note(text)
- text = first_line_in_markdown(text)
- text = truncate(text, length: 150)
- sanitize(markdown(text), tags: %w(a img b pre p))
+ text = first_line_in_markdown(text, 150)
+ sanitize(text, tags: %w(a img b pre p))
end
def event_commit_title(message)