|
|
|
@ -2,46 +2,16 @@
|
|
|
|
|
<div style="padding-top: 10px">
|
|
|
|
|
<% if forums.any? %>
|
|
|
|
|
<% forums.each do |forum| %>
|
|
|
|
|
<table class="content-text-list">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(forum.creator), :class => "avatar"), user_path(forum.creator) %></td>
|
|
|
|
|
<td>
|
|
|
|
|
<table width="860px" border="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top" width="500px"><%= link_to h(forum.name), forum_path(forum) %></td>
|
|
|
|
|
<td align="right" rowspan="3">
|
|
|
|
|
<table class="borad-count">
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="center" class="borad-count-digit"><%= link_to (forum.topic_count), forum_path(forum) %></td>
|
|
|
|
|
<td align="center" class="borad-count-digit"><%= link_to (forum.memo_count), forum_path(forum) %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="center">帖子</td>
|
|
|
|
|
<td align="center">回答</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" ><span class="font_description"><%= forum.description%></span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" ><span class="font_description">
|
|
|
|
|
<div class="tags">
|
|
|
|
|
<div id="tags">
|
|
|
|
|
<%= image_tag( "/images/sidebar/tags.png") %>
|
|
|
|
|
<%= render :partial => 'tags/tag_name', :locals => {:obj => forum,:object_flag => "5",:non_list_all => true }%>
|
|
|
|
|
</div>
|
|
|
|
|
</div></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="left" colspan="2" ><span class="font_lighter"><%= authoring forum.created_at, forum.creator %>
|
|
|
|
|
<br />
|
|
|
|
|
</span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<div class="forums-index">
|
|
|
|
|
<div class="forums-inex-avatar"><%= link_to image_tag(url_to_avatar(forum.creator), :class => "avatar"), user_path(forum.creator) %></div>
|
|
|
|
|
<div class="forums-index-content">
|
|
|
|
|
<p ><%= link_to h(forum.name), forum_path(forum) %></p>
|
|
|
|
|
<p ><%= forum.description%></p>
|
|
|
|
|
<p ><%= authoring forum.created_at, forum.creator %></p></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"><%= pagination_links_full @forums_pages, @forums_count %></div>
|
|
|
|
|
<% else %>
|
|
|
|
|