<!-- added by fq -->
<div class="forums-list">
<% if forums.any? %>
	<% forums.each do |forum| %>
	<div class="forums-index">
		<div class="forums-inex-avatar">
          <%= forum.creator.nil? ? (link_to image_tag(url_to_avatar(forum.creator), :class => "avatar")) : (link_to image_tag(url_to_avatar(forum.creator), :class => "avatar"), user_path(forum.creator)) %>
        </div>
		<div class="forums-index-content">
          <table class="content-text-list" style="table-layout: fixed;">
            <tr>
              <td valign="top" width="500px" class=" <%= forum.sticky? ? 'sticky' : '' %><%= forum.locked? ? 'locked' : '' %>" style="word-break: break-all;word-wrap: break-word;">
                  <p >
                    <%= link_to h(forum.name), forum_path(forum) %>
                  </p>
              </td>
            </tr>
			<tr>
              <td style="word-break: break-all;word-wrap: break-word;" class="upload_img">
                <p>
                  <%= textAreailizable forum.description%>
                </p>
              </td>
            </tr>
			<tr>
              <td style="word-break: break-all;word-wrap: break-word;">
                <p >
                  <%= authoring forum.created_at, forum.creator %>
                </p>
              </td>
            </tr>
          </table>
        </div>
		<div class="forums-index-count">
			<table class="forums-count-color">
              <tr class="forums-count-color" align="center">
                <td>
                  <%= link_to (forum.memo_count), forum_path(forum) %>
                </td>
                <td>
                  <%= link_to (forum.topic_count), forum_path(forum) %>
                </td>
              </tr>
              <tr align="center">
                <td>回答</td>
                <td>帖子</td>
              </tr>
            </table>
        </div>
	</div>	
	<% end %>
	<div class="pagination" style="margin-top: 10px;">
      <%= pagination_links_full @forums_pages, @forums_count %>
    </div>
<% else %>
<% end %>
</div>