mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
32 lines
1.1 KiB
Text
32 lines
1.1 KiB
Text
|
<%- site_link = raw(@markdown_linker.create(@site_name, '/')) %>
|
||
|
<%= raw(t 'user_notifications.mailing_list.why', site_link: site_link, date: @since_formatted) %>
|
||
|
|
||
|
<%- if @new_topic_posts.keys.present? -%>
|
||
|
### <%= t 'user_notifications.mailing_list.new_topics' %>
|
||
|
<%- @new_topic_posts.keys.each do |topic| %>
|
||
|
<%= raw(@markdown_linker.create(topic.title, topic.relative_url)) %>
|
||
|
<%- end -%>
|
||
|
<%- end -%>
|
||
|
|
||
|
<%- if @existing_topic_posts.keys.present? -%>
|
||
|
### <%= t 'user_notifications.mailing_list.new_topics' %>
|
||
|
<%- @existing_topic_posts.keys.each do |topic| -%>
|
||
|
<%= raw(@markdown_linker.create(topic.title, topic.relative_url)) %>
|
||
|
<%= @existing_topic_posts[topic].length %>
|
||
|
<%- end -%>
|
||
|
<%- end -%>
|
||
|
|
||
|
--------------------------------------------------------------------------------
|
||
|
|
||
|
<%- @posts_by_topic.keys.each do |topic| %>
|
||
|
### <%= raw(@markdown_linker.create(topic.title, topic.relative_url)) %>
|
||
|
|
||
|
<%- @posts_by_topic[topic].each do |post| -%>
|
||
|
<%= post.user.name || post.user.username %> - <%= post.created_at %>
|
||
|
--------------------------------------------------------------------------------
|
||
|
<%= post.raw %>
|
||
|
|
||
|
|
||
|
<%- end -%>
|
||
|
<%- end %>
|