2013-11-24 20:02:53 +08:00
|
|
|
<!-- added by fq -->
|
2013-11-23 20:04:26 +08:00
|
|
|
<!--display the board-->
|
2014-04-28 20:37:12 +08:00
|
|
|
<div class="borad-topic-count">共有 <%=link_to @forum.memos.count %> 个贴子</div>
|
2013-11-23 20:04:26 +08:00
|
|
|
<div style="padding-top: 10px">
|
|
|
|
<% if memos.any? %>
|
|
|
|
<% memos.each do |topic| %>
|
|
|
|
<table class="content-text-list">
|
2014-04-03 14:41:04 +08:00
|
|
|
<tr><td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) if topic.author%></td>
|
2013-11-23 20:04:26 +08:00
|
|
|
<td>
|
2013-11-24 20:02:53 +08:00
|
|
|
<table width="630px" border="0">
|
2013-11-23 20:04:26 +08:00
|
|
|
<tr>
|
2014-03-11 11:28:11 +08:00
|
|
|
<td valign="top" width="500px" class="<%= topic.sticky ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>"><%= link_to h(topic.subject), forum_memo_path(topic.forum, topic) %></td>
|
2013-11-23 20:04:26 +08:00
|
|
|
<td align="right" rowspan="3">
|
|
|
|
<table class="borad-count">
|
|
|
|
<tr>
|
2014-03-11 11:28:11 +08:00
|
|
|
<td align="center" class="borad-count-digit"><%= link_to (topic.replies_count), forum_memo_path(topic.forum, topic) %></td>
|
2013-11-23 20:04:26 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="center">回答</td>
|
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-11-26 16:27:56 +08:00
|
|
|
<td colspan="2" ><span class="font_description"> </span></td>
|
2013-11-23 20:04:26 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="left" colspan="2" ><span class="font_lighter"><%= authoring topic.created_at, topic.author %>
|
2014-05-21 18:52:15 +08:00
|
|
|
<span class="font_description2">
|
|
|
|
最后回复:<%=link_to_user topic.last_reply.try(:author) %>
|
|
|
|
</span>
|
2013-11-23 20:04:26 +08:00
|
|
|
<br />
|
|
|
|
</span></td>
|
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<% end %>
|
2013-11-24 20:02:53 +08:00
|
|
|
<div class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></div>
|
2013-11-23 20:04:26 +08:00
|
|
|
<% else %>
|
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|