mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
29 lines
903 B
Text
29 lines
903 B
Text
<%- 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('click here', email_unsubscribe_path(key: @user.temporary_key)))) %>
|
|
|
|
<%= raw(@markdown_linker.references) %>
|
|
|