mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 23:15:59 +08:00
30 lines
931 B
Plaintext
30 lines
931 B
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 @notifications.present? %>
|
|
### <%=t 'user_notifications.digest.new_activity' %>
|
|
|
|
<%- @notifications.each do |n| %>
|
|
* <%= raw(n.text_description { raw(@markdown_linker.create(n.data_hash[:topic_title], n.url)) }) %>
|
|
<%- end %>
|
|
|
|
<%- end %>
|
|
<%- if @new_topics.present? %>
|
|
### <%=t 'user_notifications.digest.new_topics' %>
|
|
|
|
<%- @new_topics.each do |t| %>
|
|
* <%= raw(@markdown_linker.create(t.title, t.relative_url)) %>
|
|
<%- 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) %>
|
|
|