|
|
|
@ -1,11 +1,12 @@
|
|
|
|
|
<%= board_breadcrumb(@board) %>
|
|
|
|
|
|
|
|
|
|
<div class="contextual">
|
|
|
|
|
<!--new and follow-->
|
|
|
|
|
<div class="content-title-top">
|
|
|
|
|
<%= link_to l(:label_message_new),
|
|
|
|
|
new_board_message_path(@board),
|
|
|
|
|
:class => 'icon icon-add',
|
|
|
|
|
:onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' if User.current.logged? %>
|
|
|
|
|
<%= watcher_link(@board, User.current) %>
|
|
|
|
|
<!-- <%= watcher_link(@board, User.current) %> -->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="add-message" style="display:none;">
|
|
|
|
@ -21,11 +22,13 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h3><%=h @board.name %></h3>
|
|
|
|
|
<p class="subtitle"><%=h @board.description %></p>
|
|
|
|
|
<!--display the board-->
|
|
|
|
|
<div class="borad-title"><%=h @board.name %></div>
|
|
|
|
|
<div class="borad-description"><%=h @board.description %></div>
|
|
|
|
|
<div class="borad-topic-count">共有 <%=link_to @topics.count %> 个贴子</div>
|
|
|
|
|
|
|
|
|
|
<% if @topics.any? %>
|
|
|
|
|
<table class="list messages">
|
|
|
|
|
<!-- <table class="list messages">
|
|
|
|
|
<thead><tr>
|
|
|
|
|
<th><%= l(:field_subject) %></th>
|
|
|
|
|
<th><%= l(:field_author) %></th>
|
|
|
|
@ -33,9 +36,29 @@
|
|
|
|
|
<%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %>
|
|
|
|
|
<%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %>
|
|
|
|
|
</tr></thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tbody> -->
|
|
|
|
|
<% @topics.each do |topic| %>
|
|
|
|
|
<tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
|
|
|
|
|
<table class="content-text-list">
|
|
|
|
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) %></td>
|
|
|
|
|
<td>
|
|
|
|
|
<table width="580px" border="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top" width="500px"><%= link_to h(topic.subject), board_message_path(@board, topic) %></td>
|
|
|
|
|
<td align="right" rowspan="3"><table class="borad-count"><tr><td align="center" class="borad-count-digit"><%=link_to (topic.replies_count), board_message_path(@board, topic) %></td></tr>
|
|
|
|
|
<tr><td align="center">回答</td></tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" ><span class="font_description">标签</span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr><% if topic.last_reply %>
|
|
|
|
|
<td align="left" colspan="2" ><span class="font_lighter"><%= authoring topic.last_reply.created_on, topic.last_reply.author %><br /><% end %></span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<!-- <tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
|
|
|
|
|
<td class="subject"><%= link_to h(topic.subject), board_message_path(@board, topic) %></td>
|
|
|
|
|
<td class="author"><%= link_to_user(topic.author) %></td>
|
|
|
|
|
<td class="created_on"><%= format_time(topic.created_on) %></td>
|
|
|
|
@ -46,10 +69,10 @@
|
|
|
|
|
<%= link_to_message topic.last_reply %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tr> -->
|
|
|
|
|
<% end %>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<!-- </tbody>
|
|
|
|
|
</table> -->
|
|
|
|
|
<div class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
|
|
|