2013-02-05 14:16:51 -05:00
|
|
|
<%- site_link = raw(@markdown_linker.create(@site_name, '/')) %>
|
2013-02-25 11:42:20 -05:00
|
|
|
<%= raw(t 'user_notifications.digest.why',
|
2013-02-05 14:16:51 -05:00
|
|
|
site_link: site_link,
|
|
|
|
last_seen_at: @last_seen_at) %>
|
|
|
|
|
2013-06-03 16:12:24 -04:00
|
|
|
<%- if @new_topics.present? %>
|
|
|
|
### <%=t 'user_notifications.digest.top_topics' %>
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2013-06-03 16:12:24 -04:00
|
|
|
<%- @new_topics.each do |t| %>
|
|
|
|
<%= raw(@markdown_linker.create(t.title, t.relative_url)) %>
|
|
|
|
|
|
|
|
<%- if t.best_post.present? %>
|
|
|
|
<%= raw(t.best_post.excerpt(1000,
|
|
|
|
strip_links: true,
|
2013-06-05 18:54:46 -04:00
|
|
|
text_entities: true,
|
|
|
|
markdown_images: true)) %>
|
2013-06-03 16:12:24 -04:00
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
2013-02-05 14:16:51 -05:00
|
|
|
|
|
|
|
<%- end %>
|
|
|
|
|
|
|
|
<%- end %>
|
|
|
|
<%- end %>
|
|
|
|
|
|
|
|
<%= raw(@markdown_linker.references) %>
|
|
|
|
|
|
|
|
<%=raw(t :'user_notifications.digest.unsubscribe',
|
|
|
|
site_link: site_link,
|
2013-03-03 17:00:16 -05:00
|
|
|
unsubscribe_link: raw(@markdown_linker.create(t('user_notifications.digest.click_here'), email_unsubscribe_path(key: @user.temporary_key)))) %>
|
2013-02-05 14:16:51 -05:00
|
|
|
|
|
|
|
<%= raw(@markdown_linker.references) %>
|
|
|
|
|