discourse/app/views/user_notifications/digest.text.erb
2013-02-26 07:31:35 +03:00

30 lines
902 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('click here', email_unsubscribe_path(key: @user.temporary_key)))) %>
<%= raw(@markdown_linker.references) %>