diff options
author | Vinnie Okada <vokada@mrvinn.com> | 2014-10-12 23:07:18 -0500 |
---|---|---|
committer | Vinnie Okada <vokada@mrvinn.com> | 2014-10-12 23:56:56 -0500 |
commit | b3c70d001d7371e8952cd7be879e727b5ee4155a (patch) | |
tree | ef3731d109df59f9786c1fe25aea70a1d08b89cb /app/helpers/events_helper.rb | |
parent | 5b2a42a091b2300ae1962b158b1496ac160c9e0f (diff) | |
download | gitlab-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.rb | 2 |
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) |