mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
<%- site_link = raw(@markdown_linker.create(@site_name, '/')) %>
|
|
<%= raw(t 'user_notifications.digest.why',
|
|
site_link: site_link,
|
|
last_seen_at: @last_seen_at) %>
|
|
|
|
<%- if @new_topics.present? %>
|
|
### <%=t 'user_notifications.digest.top_topics' %>
|
|
|
|
<%- @new_topics.each do |t| %>
|
|
<%= raw(@markdown_linker.create(t.title, t.relative_url)) %>
|
|
|
|
<%- if t.best_post.present? %>
|
|
<div class='digest-post'><%= raw(t.best_post.excerpt(1000,
|
|
strip_links: true,
|
|
text_entities: true,
|
|
markdown_images: true)) %></div>
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
<%- end %>
|
|
|
|
<%- end %>
|
|
<%- end %>
|
|
|
|
<%= raw(@markdown_linker.references) %>
|
|
|
|
<%=raw(t :'user_notifications.digest.unsubscribe',
|
|
site_link: site_link,
|
|
unsubscribe_link: raw(@markdown_linker.create(t('user_notifications.digest.click_here'), email_unsubscribe_path(key: @user.temporary_key)))) %>
|
|
|
|
<%= raw(@markdown_linker.references) %>
|
|
|