From 68e0ca65e06f4c5982a814ef2455e781febdc531 Mon Sep 17 00:00:00 2001 From: Steven Burnett Date: Fri, 8 Mar 2019 16:05:34 -0700 Subject: [PATCH] truncate new announcement notifications fixes COMMS-1923 Test Plan: - make a new announcement - go to /users//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 QA-Review: Ryan Norton Product-Review: Steven Burnett --- app/messages/new_announcement.sms.erb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/messages/new_announcement.sms.erb b/app/messages/new_announcement.sms.erb index db0f55b4c70..0f965731f3a 100644 --- a/app/messages/new_announcement.sms.erb +++ b/app/messages/new_announcement.sms.erb @@ -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) %>