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

41 lines
1.4 KiB
Text
Raw Normal View History

2013-02-05 14:16:51 -05:00
<%- site_link = raw(@markdown_linker.create(@site_name, '/')) %>
2013-02-25 11:42:20 -05:00
<%= raw(t 'user_notifications.digest.why',
2013-02-05 14:16:51 -05:00
site_link: site_link,
last_seen_at: @last_seen_at) %>
<%- if @featured_topics.present? %>
### <%=t 'user_notifications.digest.top_topics' %>
2013-02-05 14:16:51 -05:00
<%- @featured_topics.each_with_index do |t,i| %>
<%= raw(@markdown_linker.create(t.title, t.relative_url)) %>
<%- if t.best_post.present? %>
<%= raw(t.best_post.excerpt(1000, strip_links: true, text_entities: true, markdown_images: true)) %>
--------------------------------------------------------------------------------
2013-02-05 14:16:51 -05:00
<%- end %>
<%= digest_custom_text("below_post_#{i+1}") %>
2013-02-05 14:16:51 -05:00
<%- end %>
<%- end %>
<%= digest_custom_text("above_popular_topics") %>
<%- if @new_topics.present? %>
**<%=t 'user_notifications.digest.other_new_topics' %>**
<%- @new_topics.each do |t| %>
2015-06-01 02:13:00 -04:00
* <%= raw(@markdown_linker.create(t.title, t.relative_url)) %> - <%= t.posts_count %> - <%- if t.category %>[<%= t.category.name %>]<%- end %>
<%- end -%>
<%- end -%>
<%= digest_custom_text("below_popular_topics") %>
2013-02-05 14:16:51 -05:00
<%= raw(@markdown_linker.references) %>
<%= digest_custom_text("above_footer") %>
<%=raw(t :'user_notifications.digest.unsubscribe',
2013-02-05 14:16:51 -05:00
site_link: site_link,
unsubscribe_link: raw(@markdown_linker.create(t('user_notifications.digest.click_here'), email_unsubscribe_url(key: @unsubscribe_key, only_path: true)))) %>
2013-02-05 14:16:51 -05:00
<%= raw(@markdown_linker.references) %>
<%= digest_custom_text("below_footer") %>