80 lines
3.0 KiB
Plaintext
80 lines
3.0 KiB
Plaintext
<div id="top"></div>
|
|
<table style='width: 100%; border: 20px solid #eee;' cellspacing='0' cellpadding='0'>
|
|
<thead>
|
|
<td style='padding: 10px 10px; background-color: #<%= @header_bgcolor %>;'>
|
|
<a href='<%= Discourse.base_url %>' style='color: #<%= @anchor_color %>'>
|
|
<% if logo_url.blank? %>
|
|
<%= SiteSetting.title %>
|
|
<% else %>
|
|
<img src='<%= logo_url %>' style='max-height: 35px; min-height: 35px; height: 35px;' class='site-logo'></a>
|
|
<% end %>
|
|
<br />
|
|
<div style='padding-top: 10px;'>
|
|
<%= raw(t 'user_notifications.mailing_list.why', site_link: html_site_link(@anchor_color), date: @since_formatted) %>
|
|
</div>
|
|
<hr />
|
|
</a>
|
|
</td>
|
|
</thead>
|
|
<tr>
|
|
<td>
|
|
<h4 style="padding: 0 25px; margin: 10px 0;"><%= t('user_notifications.mailing_list.new_topics') %></h3>
|
|
<ul>
|
|
<% @new_topics.each do |topic| %>
|
|
<%= mailing_list_topic(topic, topic.posts.length) %>
|
|
<% end %>
|
|
</ul>
|
|
<h4 style="padding: 0 25px; margin: 10px 0;"><%= t('user_notifications.mailing_list.topic_updates') %></h3>
|
|
<ul>
|
|
<% @existing_topics.each do |topic| %>
|
|
<%= mailing_list_topic(topic, topic.posts.length) %>
|
|
<% end %>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table style='width: 100%; background: #eee;' cellspacing='0' cellpadding='0'>
|
|
<% @topics.each do |topic| %>
|
|
<tr>
|
|
<td>
|
|
<h3 style='padding: 20px 20px 10px; margin: 0;'>
|
|
<%= email_topic_link(topic) %>
|
|
</h3>
|
|
</td>
|
|
</tr>
|
|
<%- unless SiteSetting.private_email? %>
|
|
<tr>
|
|
<td style='border-left: 20px solid #eee; border-right: 20px solid #eee; border-bottom: 10px solid #eee; padding: 10px 10px; background: #fff;'>
|
|
<% topic.posts.each do |post| %>
|
|
<div>
|
|
<img style="float: left; width: 20px; padding-right: 5px;" src="<%= post.user.small_avatar_url %>" title="<%= post.user.username%>">
|
|
<p style="font-size: 15px; color: #888">
|
|
<a href='<%= "#{Discourse.base_url}/u/#{post.user.username}" %>'>
|
|
<%- if show_username_on_post(post) %>
|
|
<%= post.user.username %>
|
|
<% end %>
|
|
|
|
<%- if show_name_on_post(post) %>
|
|
- <%= post.user.name %>
|
|
<% end %>
|
|
</a>
|
|
|
|
<span> - </span>
|
|
<span><%= I18n.l(post.created_at, format: :long) %></span>
|
|
</p>
|
|
<%= raw format_for_email(post, false) %>
|
|
<hr />
|
|
</div>
|
|
<% end %>
|
|
<a style='font-size: 12px; float: right;' href='<%= Discourse.base_url + topic.relative_url %>'><%= t('user_notifications.mailing_list.view_this_topic') %></a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style='padding: 0 20px; font-size: 12px;'>
|
|
<a href="#top"><%= t('user_notifications.mailing_list.back_to_top') %></a>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
<% end %>
|
|
</table>
|