<%
content_for :title, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name)
content_for :h1, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name)
%>

<div class="root" data-js="threadlist">
  <% str = '' %>
  <%
  @threads.each do |thread|
    str << '<article class="thread threadlist'
    str << 'sticky' if thread.sticky
    str << thread.attribs['classes'].join(' ') unless thread.attribs['classes'].blank?
    str << ' id="t' + thread.thread_id.to_s + '">'
    str << message_header(thread, thread.message, first: true, show_icons: true)

    if not thread.message.messages.blank? and thread.attribs['open_state'] != 'closed'
      str << message_tree(thread, thread.message.messages, show_icons: true,
                          hide_repeating_subjects: uconf('hide_subjects_unchanged', 'yes') == 'yes')
    end
    str << '</article>'
  end
  %>
  <%== str %>
</div>

<%= render 'pages' %>

<%
content_for :title, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name)
content_for :h1, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name)
%>

<div class="root" data-js="threadlist">
  <% @threads.each do |thread| %>
    <article class="thread threadlist<% if thread.sticky %> sticky<% end %><% unless thread.attribs['classes'].blank? %> <%= thread.attribs['classes'].join(' ') %><% end %>" id="t<%= thread.thread_id %>">
      <%= message_header(thread, thread.message, first: true, show_icons: true) %>

      <% if not thread.message.messages.blank? and thread.attribs['open_state'] != 'closed' %>
        <%= message_tree(thread, thread.message.messages, show_icons: true,
                         hide_repeating_subjects: uconf('hide_subjects_unchanged', 'yes') == 'yes') %>
      <% end %>
    </article>
  <% end %>
</div>

<%= render 'pages' %>

Revert "trying to get the performance better for main views of forums"
Revert "trying to get the performance better for main views of forums"

This reverts commit 009f6e3d5ef966fbd856e44152c735cc92d52b1e.

No performance gain measurable
