<% lang = SiteSetting.find_by_name('default_locale').try(:value) %> <% site_email = SiteSetting.find_by_name('contact_email').try(:value) %> <%= @title %> <%= @link %> <%= @description %> <% if lang %><%= lang.sub('_', '-')%><% end %> <% if @topic_list.topics && @topic_list.topics.length > 0 %> <%= @topic_list.topics.first.created_at.rfc2822 %> <% @topic_list.topics.each do |topic| %> <% topic_url = topic.url -%> <%= topic.title %> ]]> <%= topic.category.name %> <%= PrettyText.format_for_email(first_post.cooked, first_post).html_safe %> <%- end %>

<%= t 'rss_num_posts', count: topic.posts_count %> - <%= t 'rss_num_participants', count: topic.participant_count %>

<%= link_to t('read_full_topic'), topic_url %>

]]>
<%= topic_url %> <%= topic.created_at.rfc2822 %> <%= topic.pinned_at ? 'Yes' : 'No' %> <%= topic.closed ? 'Yes' : 'No' %> <%= topic.archived ? 'Yes' : 'No' %> <%= Discourse.current_hostname %>-topic-<%= topic.id %> <%= topic.title %>
<% end %> <% end %>