<% lang = SiteSetting.find_by_name('default_locale').try(:value) %> <% site_email = SiteSetting.find_by_name('contact_email').try(:value) %> <%= @title %> <%= @link %> <%= @description %> <%= "#{lang}" if lang %> <%= @topic_list.topics.first.created_at.rfc2822 %> <% @topic_list.topics.each do |topic| %> <% topic_url = Discourse.base_url + topic.relative_url -%> <%= topic.title %> <%= "#{site_email} (@#{topic.user.username}#{" #{topic.user.name}" if topic.user.name.present?})" -%> <%= topic.category.name %> <%= t('author_wrote', author: link_to(topic.user.name, userpage_url(topic.user))).html_safe %>

<%= topic.posts.first.cooked.html_safe %>

<%= t 'num_posts' %> <%= topic.posts_count %>

<%= t 'num_participants' %> <%= topic.participant_count %>

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

]]>
<%= topic_url %> <%= topic.created_at.rfc2822 %> <%= topic_url %> <%= topic.title %>
<% end %>