discourse/app/views/email/notification.html.erb

40 lines
1.4 KiB
Plaintext
Raw Normal View History

2014-08-27 19:38:03 +08:00
<div id='main' class=<%= classes %>>
2016-04-01 05:33:25 +08:00
<div class='header-instructions'>%{header_instructions}</div>
2016-04-01 05:33:25 +08:00
<%= render partial: 'email/post', locals: { post: post, use_excerpt: false } %>
2016-04-01 05:33:25 +08:00
<% if in_reply_to_post.present? || context_posts.present? %>
<div class='footer'>%{respond_instructions}</div>
<hr>
2016-04-01 05:33:25 +08:00
<% end %>
2016-04-01 05:33:25 +08: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 %>
2016-04-01 05:33:25 +08:00
<% if context_posts.present? %>
<h4 class='previous-discussion'><%= t "user_notifications.previous_discussion" %></h4>
<% context_posts.each do |p| %>
2016-04-01 05:33:25 +08:00
<%= render partial: 'email/post', locals: { post: p, use_excerpt: false } %>
<% end %>
<% end %>
<hr>
2016-04-01 05:33:25 +08:00
<% if reached_limit %>
<div class='footer'><%= t "user_notifications.reached_limit", count: SiteSetting.max_emails_per_day_per_user %></div>
<% end %>
<div class='footer'>%{respond_instructions}</div>
2016-04-01 05:33:25 +08:00
<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>