2014-08-27 06:38:03 -05:00
|
|
|
<div id='main' class=<%= classes %>>
|
2021-06-27 19:42:06 -05:00
|
|
|
<%- if reply_above_line.present? %>
|
|
|
|
<div class="reply-above-line">
|
|
|
|
<%= t('user_notifications.reply_above_line') %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2014-05-12 15:51:53 -05:00
|
|
|
|
2015-12-07 15:52:10 -06:00
|
|
|
<div class='header-instructions'>%{header_instructions}</div>
|
|
|
|
|
2017-04-24 14:26:06 -05:00
|
|
|
<%- if SiteSetting.private_email? %>
|
|
|
|
<p><%= t('system_messages.contents_hidden') %></p>
|
|
|
|
<% else %>
|
2019-08-06 11:45:28 -05:00
|
|
|
<%= render partial: 'email/post', locals: { post: post, use_excerpt: SiteSetting.post_excerpts_in_emails } %>
|
2017-04-24 14:26:06 -05:00
|
|
|
|
|
|
|
<% if in_reply_to_post.present? || context_posts.present? %>
|
|
|
|
<div class='footer'>%{respond_instructions}</div>
|
|
|
|
<hr>
|
|
|
|
<% end %>
|
2013-07-24 02:13:15 -05:00
|
|
|
|
2017-04-24 14:26:06 -05:00
|
|
|
<% if in_reply_to_post.present? %>
|
|
|
|
<h4 class='previous-discussion'><%= t "user_notifications.in_reply_to" %></h4>
|
|
|
|
<%= render partial: 'email/post', locals: { post: in_reply_to_post, use_excerpt: true} %>
|
|
|
|
<% end %>
|
2015-08-12 16:00:16 -05:00
|
|
|
|
2017-04-24 14:26:06 -05:00
|
|
|
<% if context_posts.present? %>
|
|
|
|
<h4 class='previous-discussion'><%= t "user_notifications.previous_discussion" %></h4>
|
|
|
|
<% context_posts.each do |p| %>
|
|
|
|
<%= render partial: 'email/post', locals: { post: p, use_excerpt: false } %>
|
|
|
|
<% end %>
|
2015-08-12 16:00:16 -05:00
|
|
|
<% end %>
|
2013-07-24 02:13:15 -05:00
|
|
|
|
2017-04-24 14:26:06 -05:00
|
|
|
<% if reached_limit %>
|
|
|
|
<hr>
|
|
|
|
<div class='footer'><%= t "user_notifications.reached_limit", count: SiteSetting.max_emails_per_day_per_user %></div>
|
|
|
|
<% end %>
|
2016-03-22 23:08:34 -05:00
|
|
|
<% end %>
|
2016-04-14 13:23:52 -05:00
|
|
|
|
2018-06-11 17:54:39 -05:00
|
|
|
<div class='footer undecorated-link-footer <%= first_footer_classes %>'>%{respond_instructions}</div>
|
2016-06-03 08:48:54 -05:00
|
|
|
<div class='footer'>%{unsubscribe_instructions}</div>
|
2013-07-26 02:27:46 -05:00
|
|
|
|
|
|
|
</div>
|
2015-08-12 16:00:16 -05:00
|
|
|
|
2015-04-22 05:27:14 -05:00
|
|
|
<div itemscope itemtype="http://schema.org/EmailMessage" style="display:none">
|
2015-08-12 16:00:16 -05:00
|
|
|
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
|
2017-04-24 14:26:06 -05:00
|
|
|
<link itemprop="url" href="<%= Discourse.base_url %><%= post.url(without_slug: SiteSetting.private_email?) %>" />
|
2015-08-12 16:00:16 -05:00
|
|
|
<meta itemprop="name" content="<%= t 'read_full_topic' %>"/>
|
|
|
|
</div>
|
2015-04-22 05:27:14 -05:00
|
|
|
</div>
|