FIX: truncate long topic titles in summary email
This commit is contained in:
parent
4648e32ed1
commit
a26c3fe2b6
|
@ -124,7 +124,7 @@ body, table, td, th, h1, h2, h3 {font-family: Helvetica, Arial, sans-serif !impo
|
||||||
<td style="padding: 0 8px 0 16px; text-align:left; width:100%;">
|
<td style="padding: 0 8px 0 16px; text-align:left; width:100%;">
|
||||||
<h2 style="font-size:18px;font-weight:400;line-height:1.3;margin:0;padding:0;word-wrap:normal">
|
<h2 style="font-size:18px;font-weight:400;line-height:1.3;margin:0;padding:0;word-wrap:normal">
|
||||||
<a href="<%= Discourse.base_url_no_prefix + t.relative_url %>" style="color:#2F70AC;font-weight:400;line-height:1.3;margin:0;padding:0;text-decoration:none">
|
<a href="<%= Discourse.base_url_no_prefix + t.relative_url %>" style="color:#2F70AC;font-weight:400;line-height:1.3;margin:0;padding:0;text-decoration:none">
|
||||||
<strong><%= t.title -%></strong>
|
<strong><%= t.title.truncate(60, separator: /\s/) -%></strong>
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<%- if SiteSetting.show_topic_featured_link_in_digest && t.featured_link %>
|
<%- 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
|
||||||
<td style="color:#0a0a0a;line-height:1.3;padding:0 8px 8px 8px;text-align:right;">
|
<td style="color:#0a0a0a;line-height:1.3;padding:0 8px 8px 8px;text-align:right;">
|
||||||
<p style="color:#8f8f8f;line-height:1.3;margin:0 0 10px 0;padding:0;text-align:right;">
|
<p style="color:#8f8f8f;line-height:1.3;margin:0 0 10px 0;padding:0;text-align:right;">
|
||||||
<%=t 'user_notifications.digest.from_topic_label' %>
|
<%=t 'user_notifications.digest.from_topic_label' %>
|
||||||
<a href="<%= post.full_url -%>" style="color:#2199e8;font-weight:400;line-height:1.3;margin:0;padding:0;text-align:left;text-decoration:none"><%= post.topic.title -%></a>
|
<a href="<%= post.full_url -%>" style="color:#2199e8;font-weight:400;line-height:1.3;margin:0;padding:0;text-align:left;text-decoration:none"><%= post.topic.title.truncate(60, separator: /\s/) -%></a>
|
||||||
</p>
|
</p>
|
||||||
<a href="<%= post.full_url -%>" style="width:100%;background-color:#2199e8;color:#fff;text-decoration:none;padding:8px 16px;white-space: nowrap;">
|
<a href="<%= post.full_url -%>" style="width:100%;background-color:#2199e8;color:#fff;text-decoration:none;padding:8px 16px;white-space: nowrap;">
|
||||||
<%=t 'user_notifications.digest.join_the_discussion' %>
|
<%=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
|
||||||
</td>
|
</td>
|
||||||
<td style="padding:8px;text-align:left;">
|
<td style="padding:8px;text-align:left;">
|
||||||
<a href="<%= Discourse.base_url_no_prefix + t.relative_url %>" style="color:#2F70AC;font-weight:400;line-height:1.3;margin:0;padding:0;text-decoration:none">
|
<a href="<%= Discourse.base_url_no_prefix + t.relative_url %>" style="color:#2F70AC;font-weight:400;line-height:1.3;margin:0;padding:0;text-decoration:none">
|
||||||
<strong><%= t.title -%></strong>
|
<strong><%= t.title.truncate(60, separator: /\s/) -%></strong>
|
||||||
</a>
|
</a>
|
||||||
<%- if SiteSetting.show_topic_featured_link_in_digest && t.featured_link %>
|
<%- if SiteSetting.show_topic_featured_link_in_digest && t.featured_link %>
|
||||||
<a class='topic-featured-link' href='<%= t.featured_link %>'><%= raw topic_featured_link_domain(t.featured_link) %></a>
|
<a class='topic-featured-link' href='<%= t.featured_link %>'><%= raw topic_featured_link_domain(t.featured_link) %></a>
|
||||||
|
|
Loading…
Reference in New Issue