mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
b65313d3b9
See: https://meta.discourse.org/t/integrate-viewactions-one-click-actions-schemas-into-discourse-emails/27056
31 lines
857 B
Text
31 lines
857 B
Text
<div id='main' class=<%= classes %>>
|
|
|
|
<%= render :partial => 'email/post', :locals => {:post => post} %>
|
|
|
|
<% if context_posts.present? %>
|
|
<div class='footer'>
|
|
%{respond_instructions}
|
|
</div>
|
|
<hr>
|
|
<h4 class='.previous-discussion'><%= t "user_notifications.previous_discussion" %></h4>
|
|
|
|
<% context_posts.each do |p| %>
|
|
<%= render :partial => 'email/post', :locals => {:post => p} %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<hr>
|
|
|
|
<div class='footer'>
|
|
%{respond_instructions}
|
|
</div>
|
|
<div class='footer'>
|
|
%{unsubscribe_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>
|