2013-02-06 03:16:51 +08:00
|
|
|
<%- site_link = raw(@markdown_linker.create(@site_name, '/')) %>
|
2013-02-26 00:42:20 +08:00
|
|
|
<%= raw(t 'user_notifications.digest.why',
|
2013-02-06 03:16:51 +08:00
|
|
|
site_link: site_link,
|
|
|
|
last_seen_at: @last_seen_at) %>
|
|
|
|
|
2013-08-10 02:43:02 +08:00
|
|
|
<%- if @featured_topics.present? %>
|
2013-06-04 04:12:24 +08:00
|
|
|
### <%=t 'user_notifications.digest.top_topics' %>
|
2013-02-06 03:16:51 +08:00
|
|
|
|
2013-08-10 02:43:02 +08:00
|
|
|
<%- @featured_topics.each do |t| %>
|
2013-06-04 04:12:24 +08:00
|
|
|
<%= raw(@markdown_linker.create(t.title, t.relative_url)) %>
|
|
|
|
|
|
|
|
<%- if t.best_post.present? %>
|
2013-11-29 06:20:56 +08:00
|
|
|
<%= raw(t.best_post.excerpt(1000,
|
2013-06-04 04:12:24 +08:00
|
|
|
strip_links: true,
|
2013-06-06 06:54:46 +08:00
|
|
|
text_entities: true,
|
2013-11-29 06:20:56 +08:00
|
|
|
markdown_images: true)) %>
|
2013-06-04 04:12:24 +08:00
|
|
|
--------------------------------------------------------------------------------
|
2013-02-06 03:16:51 +08:00
|
|
|
|
|
|
|
<%- end %>
|
|
|
|
|
|
|
|
<%- end %>
|
|
|
|
<%- end %>
|
|
|
|
|
2013-08-10 02:43:02 +08:00
|
|
|
<%- if @new_topics.present? %>
|
|
|
|
**<%=t 'user_notifications.digest.other_new_topics' %>**
|
|
|
|
|
|
|
|
<%- @new_topics.each do |t| %>
|
2013-11-30 02:00:10 +08:00
|
|
|
* <%= raw(@markdown_linker.create(t.title, t.relative_url)) %> - <%= t('user_notifications.digest.posts', count: t.posts_count) %> - <%- if t.category %>[<%= t.category.name %>]<%- end %>
|
2013-08-10 02:43:02 +08:00
|
|
|
<%- end -%>
|
|
|
|
|
|
|
|
<%- end -%>
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
<%= raw(@markdown_linker.references) %>
|
|
|
|
|
2013-11-29 06:20:56 +08:00
|
|
|
<%=raw(t :'user_notifications.digest.unsubscribe',
|
2013-02-06 03:16:51 +08:00
|
|
|
site_link: site_link,
|
2013-11-29 06:20:56 +08:00
|
|
|
unsubscribe_link: raw(@markdown_linker.create(t('user_notifications.digest.click_here'), email_unsubscribe_path(key: @user.temporary_key)))) %>
|
2013-02-06 03:16:51 +08:00
|
|
|
|
|
|
|
<%= raw(@markdown_linker.references) %>
|
|
|
|
|