truncate new announcement notifications

fixes COMMS-1923

Test Plan:
- make a new announcement
- go to /users/<id of user who has cc sms channel and has this
notification on>/messages
- notice the message content is truncated to products design

Change-Id: Ica42a07da679870218185a2879074d03b78b4888
Reviewed-on: https://gerrit.instructure.com/184644
Tested-by: Jenkins
Reviewed-by: Ryan Norton <rnorton@instructure.com>
QA-Review: Ryan Norton <rnorton@instructure.com>
Product-Review: Steven Burnett <sburnett@instructure.com>
This commit is contained in:
Steven Burnett 2019-03-08 16:05:34 -07:00
parent 0083ea8c6e
commit 68e0ca65e0
1 changed files with 1 additions and 4 deletions

View File

@ -1,5 +1,2 @@
<%= t "New announcement %{title}, %{course}", :title => asset.title, :course => asset.context.name %>
<%= t "New announcement: %{title}", :title => asset.title %>
<%= HtmlTextHelper.strip_and_truncate(asset.message, :max_length => 50) %>
<%= t :details, "More info at %{url}", :url => HostUrl.context_host(asset.context) %>