discourse/app/views/user_notifications/digest.text.erb

30 lines
902 B
Plaintext
Raw Normal View History

2013-02-06 03:16:51 +08:00
<%- site_link = raw(@markdown_linker.create(@site_name, '/')) %>
2013-02-26 00:42:20 +08:00
<%= raw(t 'user_notifications.digest.why',
2013-02-06 03:16:51 +08:00
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) %>