mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-03 12:27:35 -05:00
820a435af8
We no longer include previous replies as "context", instead we include and excerpt of the post being replied to at the bottom of notifications, this information was previously missing. Users may opt in to emailing previous replies if they wish or opt out of "in-reply-to" which makes sense in some email clients that are smarter about displaying a tree of replies.
36 lines
1.3 KiB
Text
36 lines
1.3 KiB
Text
<div id='main' class=<%= classes %>>
|
|
|
|
<div class='header-instructions'>%{header_instructions}</div>
|
|
|
|
<%= render partial: 'email/post', locals: { post: post, use_excerpt: false } %>
|
|
|
|
<% if in_reply_to_post.present? || context_posts.present? %>
|
|
<div class='footer'>%{respond_instructions}</div>
|
|
<hr>
|
|
<% end %>
|
|
|
|
<% 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 %>
|
|
|
|
<% 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 %>
|
|
<% end %>
|
|
|
|
<hr>
|
|
|
|
<div class='footer'>%{respond_instructions}</div>
|
|
<div class='footer'>%{unsubscribe_link}%{unsubscribe_via_email_link}</div>
|
|
|
|
</div>
|
|
|
|
<div itemscope itemtype="http://schema.org/EmailMessage" style="display:none">
|
|
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
|
|
<link itemprop="url" href="<%= Discourse.base_url %><%= post.url %>" />
|
|
<meta itemprop="name" content="<%= t 'read_full_topic' %>"/>
|
|
</div>
|
|
</div>
|