<% 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}/u/#{topic.user.username_lower}")).html_safe %>

<% end %>
<%- if first_post = topic.ordered_posts.first %> <%= first_post.cooked.html_safe %> <%- end %>

<%= 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 %>