<% 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 -%> <% username = topic.user ? topic.user.username : "" %> <% name = topic.user ? topic.user.name : "" %> <%= topic.title %> ]]> <%= topic.category.name %>

<%= t('author_wrote', author: link_to("@#{username}", "#{Discourse.base_url}/users/#{topic.user.username_lower}")).html_safe %>

<% end %>
<%= 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.pinned_at ? 'Yes' : 'No' %> <%= topic.closed ? 'Yes' : 'No' %> <%= topic.archived ? 'Yes' : 'No' %> <%= Discourse.current_hostname %>-topic-<%= topic.id %> <%= topic.title %>
<% end %> <% end %>