2014-08-27 07:38:03 -04:00
|
|
|
<div id='main' class=<%= classes %>>
|
2014-05-12 16:51:53 -04:00
|
|
|
|
2015-12-07 16:52:10 -05:00
|
|
|
<div class='header-instructions'>%{header_instructions}</div>
|
|
|
|
|
2016-02-25 08:05:40 -05:00
|
|
|
<%= render partial: 'email/post', locals: { post: post, use_excerpt: false } %>
|
2013-07-24 03:13:15 -04:00
|
|
|
|
2016-02-25 08:05:40 -05:00
|
|
|
<% if in_reply_to_post.present? || context_posts.present? %>
|
2015-08-12 17:00:16 -04:00
|
|
|
<div class='footer'>%{respond_instructions}</div>
|
|
|
|
<hr>
|
2016-02-25 08:05:40 -05:00
|
|
|
<% end %>
|
2013-07-24 03:13:15 -04:00
|
|
|
|
2016-02-25 08:05:40 -05:00
|
|
|
<% if in_reply_to_post.present? %>
|
2016-03-23 00:08:34 -04:00
|
|
|
<h4 class='previous-discussion'><%= t "user_notifications.in_reply_to" %></h4>
|
2016-02-25 08:05:40 -05:00
|
|
|
<%= render partial: 'email/post', locals: { post: in_reply_to_post, use_excerpt: true} %>
|
|
|
|
<% end %>
|
2015-08-12 17:00:16 -04:00
|
|
|
|
2016-02-25 08:05:40 -05:00
|
|
|
<% if context_posts.present? %>
|
2016-03-23 00:08:34 -04:00
|
|
|
<h4 class='previous-discussion'><%= t "user_notifications.previous_discussion" %></h4>
|
2015-08-12 17:00:16 -04:00
|
|
|
<% context_posts.each do |p| %>
|
2016-02-25 08:05:40 -05:00
|
|
|
<%= render partial: 'email/post', locals: { post: p, use_excerpt: false } %>
|
2015-08-12 17:00:16 -04:00
|
|
|
<% end %>
|
2013-07-24 03:13:15 -04:00
|
|
|
<% end %>
|
|
|
|
|
2016-03-23 00:08:34 -04:00
|
|
|
<% if reached_limit %>
|
2016-04-14 14:23:52 -04:00
|
|
|
<hr>
|
2016-03-23 00:08:34 -04:00
|
|
|
<div class='footer'><%= t "user_notifications.reached_limit", count: SiteSetting.max_emails_per_day_per_user %></div>
|
|
|
|
<% end %>
|
2016-04-14 14:23:52 -04:00
|
|
|
|
2015-08-12 17:00:16 -04:00
|
|
|
<div class='footer'>%{respond_instructions}</div>
|
2016-06-03 09:48:54 -04:00
|
|
|
<div class='footer'>%{unsubscribe_instructions}</div>
|
2013-07-26 03:27:46 -04:00
|
|
|
|
|
|
|
</div>
|
2015-08-12 17:00:16 -04:00
|
|
|
|
2015-04-22 06:27:14 -04:00
|
|
|
<div itemscope itemtype="http://schema.org/EmailMessage" style="display:none">
|
2015-08-12 17:00:16 -04:00
|
|
|
<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>
|
2015-04-22 06:27:14 -04:00
|
|
|
</div>
|