|
|
|
@ -2,15 +2,15 @@
|
|
|
|
|
<% if forums.any? %>
|
|
|
|
|
<% forums.each do |forum| %>
|
|
|
|
|
<div class="postRow">
|
|
|
|
|
<div class="postPortrait"><a href="javascript:void(0);" class="linkGrey2">
|
|
|
|
|
<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="javascript:void(0);" class="f16 linkBlue">新手讨论吧</a>-->
|
|
|
|
|
<%= link_to forum.name, forum_path(forum),:class=>"f16 linkBlue" %>
|
|
|
|
|
<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" style="word-break: break-all;word-wrap : break-word ;"><%= textAreailizable forum.description%></div>
|
|
|
|
|
<div class="postDes" style="word-break: break-all;word-wrap : break-word ;white-space:pre-wrap;"><%= 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>
|
|
|
|
|