From a26c3fe2b6b940f3941ac81a42070dd5fc4d99a2 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Wed, 14 Dec 2016 12:58:55 -0500 Subject: [PATCH] FIX: truncate long topic titles in summary email --- app/views/user_notifications/digest.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb index 4211e8a6615..446c8add754 100644 --- a/app/views/user_notifications/digest.html.erb +++ b/app/views/user_notifications/digest.html.erb @@ -124,7 +124,7 @@ body, table, td, th, h1, h2, h3 {font-family: Helvetica, Arial, sans-serif !impo

- <%= t.title -%> + <%= t.title.truncate(60, separator: /\s/) -%>

<%- if SiteSetting.show_topic_featured_link_in_digest && t.featured_link %> @@ -286,7 +286,7 @@ body, table, td, th, h1, h2, h3 {font-family: Helvetica, Arial, sans-serif !impo

<%=t 'user_notifications.digest.from_topic_label' %> - <%= post.topic.title -%> + <%= post.topic.title.truncate(60, separator: /\s/) -%>

<%=t 'user_notifications.digest.join_the_discussion' %> @@ -337,7 +337,7 @@ body, table, td, th, h1, h2, h3 {font-family: Helvetica, Arial, sans-serif !impo - <%= t.title -%> + <%= t.title.truncate(60, separator: /\s/) -%> <%- if SiteSetting.show_topic_featured_link_in_digest && t.featured_link %> <%= raw topic_featured_link_domain(t.featured_link) %>