
<% if forums.any? %>
	<% forums.each do |forum| %>
          <div class="postRow">
            <div class="postPortrait">
              <%= link_to image_tag(url_to_avatar(forum.creator),:width=>75,:height => 75 ),user_path( forum.creator) %>
            </div>
            <div class="postWrap">
              <div class="postTitle">
                <a href="<%=  forum_path(forum) %>" class="f16 linkBlue" style="word-break: break-all;word-wrap : break-word ;white-space:pre-wrap;"><%=forum.name.gsub(/(\r\n)/,'<br/>').html_safe %></a>
                <%#= link_to forum.name.gsub(/(\r\n|\s+)/,'<br/>'), forum_path(forum),:class=>"f16 linkBlue" %>
              </div>
              <div class="postDes"><%= textAreailizable forum.description%></div>
              <div class="postCreater">创建者：<a href="<%= user_path( forum.creator)%>" class="linkGrey2" target="_blank"><%= forum.creator.name %></a></div>
              <div class="postDate">创建时间：<%= format_date(forum.created_at) %></div>
            </div>
            <div class="postStatics">
              <div>
                <!--<a href="javascript:void(0);" class="linkGrey5 fb">280</a>-->
                    <%= link_to ( forum.topic_count), forum_path(forum),:class=>"linkGrey5 fb" %>
              </div>
              <div>帖子</div>
            </div>
            <div class="slice"></div>
            <div class="postStatics mr20">
              <div>
                <!--<a href="javascript:void(0);" class="linkGrey5 fb">335</a>-->
                <%= link_to (forum.memo_count), forum_path(forum),:class=>"linkGrey5 fb" %>
              </div>
              <div>回答</div>
            </div>
            <div class="cl"></div>
          </div>
	<% end %>

<% else %>
    <%= render :partial => "layouts/no_content" %>
<% end %>