summaryrefslogtreecommitdiff
path: root/app/helpers/events_helper.rb
diff options
context:
space:
mode:
authorVinnie Okada <vokada@mrvinn.com>2014-10-12 23:07:18 -0500
committerVinnie Okada <vokada@mrvinn.com>2014-10-12 23:56:56 -0500
commitb3c70d001d7371e8952cd7be879e727b5ee4155a (patch)
treeef3731d109df59f9786c1fe25aea70a1d08b89cb /app/helpers/events_helper.rb
parent5b2a42a091b2300ae1962b158b1496ac160c9e0f (diff)
downloadgitlab-ce-b3c70d001d7371e8952cd7be879e727b5ee4155a.tar.gz
Improve dashboard note view and add tests
Update the `#first_line_in_markdown` method so that the first line of parsed text is displayed more reliably, and the continuation indicators ("...") are displayed in all cases where the note is truncated. Also add Rspec tests for `EventsHelper#event_note`.
Diffstat (limited to 'app/helpers/events_helper.rb')
-rw-r--r--app/helpers/events_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb
index 100dde10273..71f97fbb8c8 100644
--- a/app/helpers/events_helper.rb
+++ b/app/helpers/events_helper.rb
@@ -137,7 +137,7 @@ module EventsHelper
def event_note(text)
text = first_line_in_markdown(text, 150)
- sanitize(text, tags: %w(a img b pre p))
+ sanitize(text, tags: %w(a img b pre code p))
end
def event_commit_title(message)