2019-07-30 15:05:08 -04:00
<div class="summary-email">
2016-11-10 18:16:24 -05:00
<span class="preheader" style="display:none!important;color:#f3f3f3;font-size:1px;line-height:1px;max-height:0;max-width:0;mso-hide:all!important;opacity:0;overflow:hidden;visibility:hidden">
<%= @preheader_text %>
</span>
2016-12-06 12:40:42 -05:00
<%- if I18n.t('user_notifications.digest.custom.html.header').present? %>
2021-07-23 17:21:03 -04:00
<table class="digest-header logo-header" dir="<%= rtl? ? 'rtl' : 'ltr' %>" style="width:100%;min-width:100%;border-spacing:0;padding:0;">
2016-12-06 12:40:42 -05:00
<tr>
<td style="padding:0;">
<%= raw(t 'user_notifications.digest.custom.html.header') %>
</td>
</tr>
</table>
<%- else %>
2021-07-23 17:21:03 -04:00
<table class="digest-header text-header with-dir" style="background-color:#<%= @header_bgcolor -%>;width:100%;min-width:100%;">
2016-11-10 18:16:24 -05:00
<tr>
2021-02-05 17:01:21 -05:00
<td align="center" style="text-align: center;padding: 20px 0; font-family:Arial,sans-serif;">
2016-11-10 18:16:24 -05:00
2016-12-09 16:59:54 -05:00
<a href="<%= Discourse.base_url %>" style="color:#<%= @header_color -%>;font-size:22px;text-decoration:none;">
2016-11-10 18:16:24 -05:00
<%- if logo_url.blank? %>
<%= SiteSetting.title %>
2016-08-23 16:06:02 -04:00
<%- else %>
2016-11-27 12:49:15 -05:00
<img src="<%= logo_url %>" height="40" style="clear:both;display:block;height:40px;margin:auto;max-width:100%;outline:0;text-decoration:none;" alt="<%= SiteSetting.title %>">
2016-08-23 16:06:02 -04:00
<%- end %>
2016-11-10 18:16:24 -05:00
</a>
</td>
</tr>
</table>
2016-12-06 12:40:42 -05:00
<%- end %>
2016-11-10 18:16:24 -05:00
2021-02-05 17:01:21 -05:00
<table class="body digest-content with-dir" style="width:100%;background:#f3f3f3;padding:0;border-spacing:0;font-family:Arial,sans-serif;font-size:14px;font-weight:200;line-height:1.3;vertical-align:top;">
2016-11-10 18:16:24 -05:00
<tr>
<td class="side-spacer" style="width:5%;vertical-align:top;padding:0;">
2016-12-19 11:19:10 -05:00
<div class="with-accent-colors">
2020-05-04 14:07:03 -04:00
<table class="spacer with-accent-colors" style="border-spacing:0;padding:0;width:100%">
2016-11-10 18:16:24 -05:00
<tbody>
<tr>
<td height="400px" style="height:400px;border-collapse:collapse!important;margin:0;mso-line-height-rule:exactly;padding:0;"> </td>
</tr>
</tbody>
</table>
</div>
</td>
2021-02-05 17:01:21 -05:00
<td style="vertical-align:top;padding:0;font-family:Arial,sans-serif;">
2019-10-28 16:36:37 -04:00
<table align="center" class="digest-content-header with-accent-colors with-dir" style="border-spacing:0;margin:0;padding:0;vertical-align:top;width:100%">
2016-11-10 18:16:24 -05:00
<tbody>
<tr>
2019-10-28 16:36:37 -04:00
<td style="border-collapse:collapse!important;color:#0a0a0a;line-height:1.3;margin:0;padding:0;vertical-align:top;word-wrap:normal">
2016-11-10 18:16:24 -05:00
<br/>
2020-05-04 14:07:03 -04:00
<center class="header-since-last-visit with-accent-colors" style="font-size:22px;font-weight:400;mso-line-height-rule:exactly;line-height:36px;"><%=t 'user_notifications.digest.since_last_visit' %></center>
2016-11-10 18:16:24 -05:00
2013-11-28 17:20:56 -05:00
2021-07-23 17:21:03 -04:00
<table class="header-stats with-dir" style="table-layout:fixed;margin:10px 0 20px 0;padding:0;vertical-align:top;width:100%;min-width:100%;">
2016-11-10 18:16:24 -05:00
<tbody>
2019-10-15 16:21:55 -04:00
<tr class="header-stat-count">
2016-11-24 16:28:24 -05:00
<%- @counts.each do |count| -%>
2016-12-19 11:19:10 -05:00
<td style="text-align:center;font-size:36px;font-weight:400;">
<a class="with-accent-colors" href="<%= count[:href] -%>"><strong><%= count[:value] -%></strong></a>
2016-11-24 16:28:24 -05:00
</td>
<%- end -%>
2016-11-10 18:16:24 -05:00
</tr>
2019-10-15 16:21:55 -04:00
<tr class="header-stat-description">
2016-11-24 16:28:24 -05:00
<%- @counts.each do |count| -%>
2016-12-19 11:19:10 -05:00
<td style="font-size:14px;font-weight:400;text-align:center;">
<a class="with-accent-colors" href="<%= count[:href] -%>"><strong><%=t count[:label_key] -%></strong></a>
2016-11-24 16:28:24 -05:00
</td>
<%- end -%>
2016-11-10 18:16:24 -05:00
</tr>
</tbody>
</table>
2020-05-04 14:07:03 -04:00
<center class="header-popular-topics with-accent-colors" style="font-size:22px;font-weight:400;margin-bottom: 8px; mso-line-height-rule:exactly;line-height:36px;"><%=t 'user_notifications.digest.popular_topics' %></center>
2014-08-22 15:14:50 -04:00
2016-11-10 18:16:24 -05:00
</td>
</tr>
</tbody>
</table>
2019-10-28 16:36:37 -04:00
<table class="with-dir" align="center" style="border-spacing:0;background:#fefefe;margin:0;padding:0;text-align:center;vertical-align:top;width:100%">
2016-11-10 18:16:24 -05:00
<tbody>
<tr>
2019-10-28 16:36:37 -04:00
<td class="digest-popular-topic-wrapper with-dir" style="-moz-hyphens:auto;-webkit-hyphens:auto;border-collapse:collapse!important;color:#0a0a0a;hyphens:auto;line-height:1.3;margin:0;padding:0;vertical-align:top;word-wrap:normal">
2016-11-10 18:16:24 -05:00
<% @popular_topics.each_with_index do |t, i| %>
<!-- Beginning of Popular Topic -->
2019-10-28 16:36:37 -04:00
<table class="digest-topic popular-topic with-dir" style="width:100%">
2016-11-10 18:16:24 -05:00
<tbody>
<tr>
2019-10-28 16:36:37 -04:00
<td class="digest-topic-category with-dir" style="margin:0;padding:<%= rtl? ? '0 16px 0 0' : '0 0 0 16px' %>;vertical-align:top;">
2016-11-27 13:03:34 -05:00
<p style="color:#8f8f8f;line-height:1.3;margin: 20px 0 0 0;">
2015-05-17 12:38:43 -04:00
<%= category_badge(t.category, inline_style: true, absolute_url: true) %>
2016-11-10 18:16:24 -05:00
</p>
</td>
2019-10-28 16:36:37 -04:00
<td class="with-dir" style="margin:0;padding:<%= rtl? ? '0 0 0 16px' : '0 16px 0 0' %>;text-align:<%= rtl? ? 'left' : 'right' %>;vertical-align:top;">
2019-10-15 16:21:55 -04:00
<p class="text-right digest-created-at" style="color:#8f8f8f;line-height:1.3;margin:20px 0 0 0;font-weight:400;">
2016-11-10 18:16:24 -05:00
<%= short_date(t.created_at) %>
</p>
</td>
</tr>
</tbody>
</table>
2019-10-28 16:36:37 -04:00
<table class="with-dir" style="vertical-align:top;width:100%">
2016-11-10 18:16:24 -05:00
<tbody>
<tr>
2019-10-28 16:36:37 -04:00
<td class="with-dir" style="padding:<%= rtl? ? '0 16px 8px 8px' : '0 8px 8px 16px' %>;width:100%;">
2019-10-15 16:21:55 -04:00
<h2 class="digest-topic-title" style="font-size:18px;font-weight:400;line-height:1.3;margin:0;padding:0;word-wrap:normal">
2016-12-19 11:19:10 -05:00
<a href="<%= Discourse.base_url_no_prefix + t.relative_url %>" style="font-weight:400;line-height:1.3;margin:0;padding:0;text-decoration:none">
2017-11-06 09:59:58 -05:00
<strong><%= gsub_emoji_to_unicode(t.title.truncate(100, separator: /\s/)) -%></strong>
2016-11-10 18:16:24 -05:00
</a>
</h2>
2016-12-05 07:31:43 -05:00
<%- 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>
<%- end %>
2016-11-10 18:16:24 -05:00
</td>
</tr>
</tbody>
</table>
2019-10-28 16:36:37 -04:00
<table class="with-dir" style="padding:0;position:relative;vertical-align:top;width:100%">
2016-11-10 18:16:24 -05:00
<tbody>
<tr>
2020-05-04 14:07:03 -04:00
<td class="digest-topic-op" style="color:#0a0a0a;line-height:1.3;margin:0 auto;padding:<%= rtl? ? '0 16px 0 0' : '0 0 0 16px' %>;width:50px;vertical-align:top;">
2019-11-06 04:56:46 -05:00
<img src="<%= t.user.small_avatar_url -%>" style="border-radius:50%;clear:both;display:block;float:none;height:50px;width:50px;margin:0;max-width:100%;outline:0;text-align:center;text-decoration:none;" align="center" alt="<%= t.user.username -%>">
2016-11-10 18:16:24 -05:00
</td>
2019-10-28 16:36:37 -04:00
<td style="color:#0a0a0a;padding:<%= rtl? ? '0 8px 0 16px' : '0 16px 0 8px' %>;vertical-align:top;">
2016-12-01 12:17:23 -05:00
<% if t.user %>
<% if SiteSetting.enable_names? && t.user.name.present? && t.user.name.downcase != t.user.username.downcase %>
2019-10-15 16:21:55 -04:00
<h6 class="digest-topic-username" style="color:inherit;line-height:1.3;margin:0;padding:0;font-weight: normal;font-size:16px;"><%= t.user.name -%></h6>
2016-12-01 12:17:23 -05:00
<% end %>
2019-10-15 16:21:55 -04:00
<p class="digest-topic-name" style="color:inherit;font-size:14px;font-weight:400;line-height:1.3;margin:0 0 8px 0;padding:0;word-wrap:normal;"><%= t.user.username -%></p>
2016-11-10 18:16:24 -05:00
<% end %>
</td>
2017-01-09 13:27:27 -05:00
<%- if show_image_with_url(t.image_url) && t.featured_link.nil? && !(@excerpts[t.first_post&.id]||"").include?(t.image_url) -%>
2020-05-04 14:07:03 -04:00
<td style="margin:0;padding:<%= rtl? ? '0 8px 0 16px' : '0 16px 0 8px' %>;vertical-align:top;" align="right">
2019-11-06 04:56:46 -05:00
<img src="<%= url_for_email(t.image_url) -%>" height="64" style="margin:auto;max-height:64px;max-width:100%;outline:0;text-decoration:none;" alt="topic image">
2016-11-25 15:41:17 -05:00
</td>
<%- end -%>
2016-11-10 18:16:24 -05:00
</tr>
</tbody>
</table>
<%- if t.first_post.present? && !t.first_post.user_deleted %>
2020-05-04 14:07:03 -04:00
<table class="digest-topic-body with-dir" style="border-bottom:1px solid #f3f3f3;mso-border-bottom-alt:none;padding:0;vertical-align:top;width:100%;">
2016-11-10 18:16:24 -05:00
<tbody>
<tr>
2020-05-04 14:07:03 -04:00
<td class="post-excerpt" style="color:#0a0a0a;font-size:14px;padding:0 16px 0 16px;width:100%;font-weight:normal;mso-padding-alt: 16px;">
2017-01-09 13:27:27 -05:00
<%= @excerpts[t.first_post.id] %>
2016-11-10 18:16:24 -05:00
</td>
</tr>
</tbody>
</table>
<%- end %>
2019-10-28 16:36:37 -04:00
<table class="digest-topic-stats with-dir" style="padding:0;vertical-align:top;width:100%; margin-top:20px;">
2016-11-10 18:16:24 -05:00
<tbody>
2016-11-29 20:21:51 -05:00
<tr>
2019-10-28 16:36:37 -04:00
<td class="digest-topic-stat" style="padding:<%= rtl? ? '0 16px 16px 8px' : '0 8px 16px 16px' %>;white-space:nowrap;vertical-align:top;width:75px">
2019-11-06 04:56:46 -05:00
<img class="digest-icon" src="<%= email_image_url 'heart.png' -%>" style="clear:both;display:inline-block;float:<%= rtl? ? 'right' : 'left' %>;height:20px;margin:0;max-width:100%;opacity:.4;outline:0;text-decoration:none;width:auto" alt="likes">
2020-05-04 14:07:03 -04:00
<span style="color:#8f8f8f;float:<%= rtl? ? 'right' : 'left' %>;line-height:1.3;margin:0 5px 10px 5px;padding:0;font-weight:400;"> <%= t.like_count -%></span>
2016-11-10 18:16:24 -05:00
</td>
2019-10-28 16:36:37 -04:00
<td class="digest-topic-stat" style="padding:0 8px 16px 8px;white-space:nowrap;vertical-align:top;width:75px">
2019-11-06 04:56:46 -05:00
<img class="digest-icon" src="<%= email_image_url 'comment.png' -%>" style="clear:none;display:inline-block;float:<%= rtl? ? 'right' : 'left' %>;height:20px;margin:0;max-width:100%;opacity:.4;outline:0;text-decoration:none;width:auto" alt="replies">
2020-05-04 14:07:03 -04:00
<span style="color:#8f8f8f;float:<%= rtl? ? 'right' : 'left' %>;line-height:1.3;margin:0 5px 10px 5px;padding:0;font-weight:400;"> <%= t.posts_count - 1 -%></span>
2016-11-10 18:16:24 -05:00
</td>
2019-10-28 16:36:37 -04:00
<td class="digest-topic-posters" style="padding:0 8px 16px 8px;white-space:nowrap;vertical-align:top;">
2016-11-10 18:16:24 -05:00
<% t.posters_summary.each do |ps| %>
<% if ps.user %>
2020-05-04 14:07:03 -04:00
<img src="<%= ps.user.small_avatar_url -%>" style="border-radius:50%;clear:both;display:inline-block;height:20px;width:20px;outline:0;text-decoration:none;" height="20" width="20" alt="<%= ps.user.username -%>">
2016-11-10 18:16:24 -05:00
<% end %>
<% end %>
</td>
2019-10-15 16:21:55 -04:00
<td class="digest-read-more-wrap" style="line-height:1.3;padding:<%= rtl? ? '0 8px 0 16px' : '0 16px 0 8px' %>;text-align:<%= rtl? ? 'left' : 'right' %>;white-space:nowrap;vertical-align:top;">
2020-05-04 14:07:03 -04:00
<span class="with_accent-colors mso-accent-link">
<a href="<%= Discourse.base_url_no_prefix + t.relative_url %>" class="digest-button with-accent-colors" style="width:100%;text-decoration:none;padding:8px 16px;white-space:nowrap;">
<%=t 'user_notifications.digest.join_the_discussion' %>
</a>
</span>
2016-11-10 18:16:24 -05:00
</td>
</tr>
</tbody>
</table>
<div style="background-color:#f3f3f3;">
2020-05-04 14:07:03 -04:00
<table class="spacer with-dir" style="padding:0;width:100%;background-color:#f3f3f3">
2016-11-10 18:16:24 -05:00
<tbody><tr><td height="20px" style="border-collapse:collapse!important;line-height:20px;margin:0;mso-line-height-rule:exactly;padding:0;"> </td></tr></tbody>
</table>
</div>
<!-- End of Popular Topic -->
2016-11-25 16:37:06 -05:00
<% if i < 5 %>
2016-11-10 18:16:24 -05:00
<%= digest_custom_html("below_post_#{i+1}") %>
2016-11-25 16:37:06 -05:00
<% end %>
2016-11-10 18:16:24 -05:00
<% end %>
</td>
</tr>
</tbody>
</table>
</td>
<td class="side-spacer" style="width:5%;vertical-align:top;padding:0;">
2016-12-19 11:19:10 -05:00
<!-- Background that goes down part-way behind content -->
<div class="with-accent-colors">
2020-05-04 14:07:03 -04:00
<table class="spacer with-dir with-accent-colors" style="border-spacing:0;padding:0;width:100%">
2016-11-10 18:16:24 -05:00
<tbody>
<tr>
<td height="400px" style="height:400px;border-collapse:collapse!important;margin:0;mso-line-height-rule:exactly;padding:0;"> </td>
</tr>
</tbody>
</table>
2014-04-17 16:42:40 -04:00
</div>
2016-11-10 18:16:24 -05:00
</td>
</tr>
2013-11-28 17:20:56 -05:00
</table>
2014-11-13 16:44:48 -05:00
2016-11-10 18:16:24 -05:00
<% if @popular_posts.present? %>
2021-02-05 17:01:21 -05:00
<center class="header-popular-posts" style="color:#0a0a0a;background:#f3f3f3;font-size:22px;font-weight:400;padding: 20px 0;font-family:Arial,sans-serif;">
2016-12-29 15:33:53 -05:00
<%=t 'user_notifications.digest.popular_posts' %>
</center>
2016-11-10 18:16:24 -05:00
2021-02-05 17:01:21 -05:00
<table class="body with-dir" style="width:100%;background:#f3f3f3;border-spacing:0;border-collapse:collapse!important;font-family:Arial,sans-serif;font-size:14px;font-weight:200;line-height:1.3;padding:0;vertical-align:top;">
2016-11-10 18:16:24 -05:00
<tr>
<td class="side-spacer" style="width:5%;padding:0;"> </td>
2019-10-28 16:36:37 -04:00
<td class="with-dir" align="center" valign="top" style="width:90%;border-collapse:collapse!important;line-height:1.3;margin:0;padding:0;vertical-align:top;">
2016-11-10 18:16:24 -05:00
<% @popular_posts.each do |post| %>
<!-- Beginning of Popular Post -->
2019-10-28 16:36:37 -04:00
<table class="popular-post-excerpt with-dir" style="width:100%;background:#fefefe;border-spacing:0;padding:0;vertical-align:top;">
2016-11-10 18:16:24 -05:00
<tbody>
<tr>
2019-10-28 16:36:37 -04:00
<td class="post-excerpt with-dir" style="color:#0a0a0a;font-size:14px;font-weight:normal;padding:16px;width:100%;">
2019-05-20 04:04:23 -04:00
<%= email_excerpt(post.cooked, post) %>
2016-11-10 18:16:24 -05:00
</td>
</tr>
</tbody>
</table>
2019-10-28 16:36:37 -04:00
<table class="popular-post-spacer with-dir" style="border-spacing:0;background-color:#f3f3f3;padding:0;vertical-align:top;width:100%">
2016-11-10 18:16:24 -05:00
<tbody>
<tr>
2019-10-28 16:36:37 -04:00
<td style="border-spacing:0;padding:0;color:#0a0a0a;line-height:1.3;padding:<%= rtl? ? '0 65px 0 0' : '0 0 0 65px' %>;">
2019-11-06 04:56:46 -05:00
<img src="<%= email_image_url 'right_triangle.png' -%>" style="clear:both;display:block;height:20px;width:20px;outline:0;text-decoration:none;" alt="">
2016-11-10 18:16:24 -05:00
</td>
</tr>
</tbody>
</table>
2019-10-28 16:36:37 -04:00
<table class="popular-post-meta with-dir" style="background-color:#f3f3f3;padding:0;position:relative;vertical-align:top;width:100%">
2016-11-10 18:16:24 -05:00
<tbody>
<tr>
2019-10-28 16:36:37 -04:00
<td style="padding:0 8px 8px 8px;width:50px;vertical-align:top;">
2019-11-06 04:56:46 -05:00
<img src="<%= post.user.small_avatar_url -%>" style="border-radius:50%;clear:both;display:block;height:50px;width:50px;outline:0;" alt="<%= post.user.username -%>">
2016-11-10 18:16:24 -05:00
</td>
2016-11-27 12:49:15 -05:00
<td style="color:#0a0a0a;line-height:1.3;padding:0 8px 8px 8px;vertical-align:top;">
2016-12-01 12:17:23 -05:00
<% if post.user %>
2016-12-02 13:31:12 -05:00
<% if SiteSetting.enable_names? && post.user.name && post.user.name.downcase != post.user.username.downcase %>
2016-12-19 11:19:10 -05:00
<h6 style="color:inherit;line-height:1.3;margin:0;padding:0;font-weight: normal;font-size:16px;"><%= post.user.name -%></h6>
2016-12-01 12:17:23 -05:00
<% end %>
2016-12-19 11:19:10 -05:00
<p style="color:inherit;font-size:14px;font-weight:400;line-height:1.3;margin:0 0 8px 0;padding:0;word-wrap:normal;"><%= post.user.username -%></p>
2016-11-30 17:57:57 -05:00
<% end %>
2016-11-10 18:16:24 -05:00
</td>
2017-06-16 06:50:20 -04:00
<td style="color:#0a0a0a;line-height:1.3;padding:0 8px 8px 8px;text-align:<%= rtl? ? 'left' : 'right' %>;">
2019-10-28 16:36:37 -04:00
<p style="color:#8f8f8f;line-height:1.3;margin:0 0 10px 0;padding:0;">
<a href="<%= post.full_url -%>" style="font-weight:400;line-height:1.3;margin:0;padding:0;text-decoration:none"><%= gsub_emoji_to_unicode(post.topic.title.truncate(100, separator: /\s/)) -%></a>
2016-11-10 18:16:24 -05:00
</p>
2019-10-15 16:21:55 -04:00
<a href="<%= post.full_url -%>" class="digest-button with-accent-colors" style="width:100%;text-decoration:none;padding:8px 16px;white-space: nowrap;">
2016-11-10 18:16:24 -05:00
<%=t 'user_notifications.digest.join_the_discussion' %>
</a>
</td>
</tr>
</tbody>
</table>
<div style="background-color:#f3f3f3">
2020-05-04 14:07:03 -04:00
<table class="spacer with-dir" style="padding:0;vertical-align:top;width:100%;background-color:#f3f3f3">
2019-10-28 16:36:37 -04:00
<tbody><tr><td height="40" style="-moz-hyphens:auto;-webkit-hyphens:auto;border-collapse:collapse!important;color:#0a0a0a;font-size:40px;font-weight:400;hyphens:auto;line-height:40px;margin:0;mso-line-height-rule:exactly;padding:0;vertical-align:top;word-wrap:normal"> </td></tr></tbody>
2016-11-10 18:16:24 -05:00
</table>
</div>
<!-- End of Popular Post -->
<% end %>
2016-11-30 17:57:57 -05:00
</td>
<td class="side-spacer" style="width:5%;padding:0;"> </td>
</tr>
</table>
2016-11-10 18:16:24 -05:00
<% end %>
2016-12-06 12:35:02 -05:00
<%= digest_custom_html("above_popular_topics") %>
2016-11-10 18:16:24 -05:00
<% if @other_new_for_you.present? %>
2021-02-05 17:01:21 -05:00
<center class="digest-new-header" style="color:#0a0a0a;background:#f3f3f3;font-size:22px;font-weight:400;padding-bottom: 8px;font-family:Arial,sans-serif;mso-line-height-rule:exactly;line-height:36px;"><%=t 'user_notifications.digest.more_new' %></center>
2016-11-10 18:16:24 -05:00
2021-02-05 17:01:21 -05:00
<table class="digest-new-topics body with-dir" style="width:100%;background:#f3f3f3;border-spacing:0;border-collapse:collapse!important;font-family:Arial,sans-serif;font-size:14px;font-weight:200;line-height:1.3;padding:0;vertical-align:top;">
2016-11-30 17:57:57 -05:00
<tr>
<td class="side-spacer" style="width:5%;padding:0;"> </td>
<td align="center" valign="top" style="width:90%;border-collapse:collapse!important;margin:0;padding:0;">
2019-10-28 16:36:37 -04:00
<table class="digest-new-topic with-dir" style="padding:0;vertical-align:top;width:100%">
2016-11-10 18:16:24 -05:00
<tbody>
<% @other_new_for_you.each do |t| %>
<!-- Begin new topic -->
<tr style="vertical-align:top;">
2019-10-28 16:36:37 -04:00
<td class="digest-new-topic-title with-dir" style="padding:8px;">
<a href="<%= Discourse.base_url_no_prefix + t.relative_url %>" style="font-weight:400;line-height:1.3;margin:0;padding:0;text-decoration:none;">
2017-11-06 09:59:58 -05:00
<strong><%= gsub_emoji_to_unicode(t.title.truncate(100, separator: /\s/)) -%></strong>
2016-11-10 18:16:24 -05:00
</a>
2016-12-05 07:31:43 -05:00
<%- 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>
<%- end %>
2019-10-28 16:36:37 -04:00
<p class="digest-new-topic-category" style="color:#0a0a0a;line-height:1.3;margin:0 0 10px 0;padding:0;">
2016-11-21 17:33:10 -05:00
<%= category_badge(t.category, inline_style: true, absolute_url: true) %>
</p>
2016-11-10 18:16:24 -05:00
</td>
2019-10-28 16:36:37 -04:00
<td class="digest-new-topic-posters with-dir" style="padding:8px;">
2016-11-10 18:16:24 -05:00
<% t.posters_summary[0,2].each do |ps| %>
<% if ps.user %>
2019-11-06 04:56:46 -05:00
<img src="<%= ps.user.small_avatar_url -%>" style="height:20px;width:20px;margin:<%= rtl? ? '0 0 5px 5px' : '0 5px 5px 0' %>;border-radius:50%;clear:both;display:inline-block;outline:0;text-decoration:none;" alt="<%= ps.user.username -%>">
2016-11-10 18:16:24 -05:00
<% end %>
<% end %>
</td>
2019-10-28 16:36:37 -04:00
<td class="digest-new-topic-stat with-dir" style="padding:8px;">
2019-11-06 04:56:46 -05:00
<img class="digest-icon" src="<%= email_image_url 'heart.png' -%>" style="clear:both;display:inline-block;float:<%= rtl? ? 'right' : 'left' %>;height:20px;margin:0;max-width:100%;opacity:.4;outline:0;text-decoration:none;width:auto" alt="likes">
2019-10-28 16:36:37 -04:00
<p style="color:#8f8f8f;float:<%= rtl? ? 'right' : 'left' %>;line-height:1.3;margin:0 5px 10px 5px;padding:0;font-weight:400;"><%= t.like_count -%></p>
2016-11-10 18:16:24 -05:00
</td>
2019-10-28 16:36:37 -04:00
<td class="digest-new-topic-stat digest-replies with-dir" style="padding:8px;">
2019-11-06 04:56:46 -05:00
<img class="digest-icon" src="<%= email_image_url 'comment.png' -%>" style="clear:none;display:inline-block;float:<%= rtl? ? 'right' : 'left' %>;height:20px;margin:0;max-width:100%;opacity:.4;outline:0;text-decoration:none;width:auto" alt="replies">
2019-10-28 16:36:37 -04:00
<p style="color:#8f8f8f;float:<%= rtl? ? 'right' : 'left' %>;line-height:1.3;margin:0 5px 10px 5px;padding:0;font-weight:400;"><%= t.posts_count - 1 -%></p>
2016-11-10 18:16:24 -05:00
</td>
</tr>
2019-10-15 16:21:55 -04:00
<tr class="digest-new-topic-spacer"><td colspan="6" height="10px" style="border-collapse:collapse!important;line-height:10px;margin:0;mso-line-height-rule:exactly;padding:0;"> </td></tr>
2016-11-10 18:16:24 -05:00
<!-- End new topic -->
<% end %>
</tbody>
</table>
2016-11-30 17:57:57 -05:00
</td>
<td class="side-spacer" style="width:5%;padding:0;"> </td>
</tr>
</table>
2016-11-10 18:16:24 -05:00
<% end %>
2016-12-06 12:35:02 -05:00
<%= digest_custom_html("below_popular_topics") %>
2016-11-10 18:16:24 -05:00
</td>
<td class="side-spacer" style="width:5%;padding:0;"> </td>
</tr>
</table>
<style>
@media only screen {
html {
min-height: 100%;
background: #f3f3f3
}
}
@media only screen and (max-width:900px) {
table.body img {
width: auto;
height: auto
}
table.body center {
min-width: 0!important;
}
table.body .side-spacer {
width: 2.5%!important;
}
table.body .column,
table.body .columns {
height: auto!important;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding-left: 16px!important;
padding-right: 16px!important
}
table.body .column .column,
table.body .column .columns,
table.body .columns .column,
table.body .columns .columns {
padding-left: 0!important;
padding-right: 0!important
}
}
</style>
2016-08-23 16:06:02 -04:00
<%= digest_custom_html("above_footer") %>
2019-10-28 16:36:37 -04:00
<table class='summary-footer with-dir' style="width: 100%">
2019-10-16 10:39:40 -04:00
<tr>
<td align="center">
2016-03-15 13:29:19 -04:00
<%=raw(t 'user_notifications.digest.unsubscribe',
2020-02-11 15:52:38 -05:00
site_link: html_site_link,
2017-10-30 15:36:23 -04:00
email_preferences_link: link_to(t('user_notifications.digest.your_email_settings'), Discourse.base_url + '/my/preferences/emails'),
2020-02-11 15:52:38 -05:00
unsubscribe_link: link_to(t('user_notifications.digest.click_here'), "#{Discourse.base_url}/email/unsubscribe/#{@unsubscribe_key}")) %>
2019-10-16 10:39:40 -04:00
</td>
</tr>
</table>
2016-08-23 16:06:02 -04:00
<%= digest_custom_html("below_footer") %>
2016-11-10 18:16:24 -05:00
2019-07-30 15:05:08 -04:00
</div>