|
|
|
@ -1,23 +1,25 @@
|
|
|
|
|
<!-- <%= board_breadcrumb(@board) %> -->
|
|
|
|
|
<!-- <%#= board_breadcrumb(@board) %> -->
|
|
|
|
|
|
|
|
|
|
<!--new and follow-->
|
|
|
|
|
<!-- <div class="content-title-top">
|
|
|
|
|
<%= link_to l(:label_message_new),
|
|
|
|
|
<%#= 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" class="add_frame" style="display:none;">
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<h3><%= link_to h(@board.name), project_board_path(@project, @board) %> » <%= l(:label_message_new) %></h3>
|
|
|
|
|
|
|
|
|
|
<div class="add_frame_header">
|
|
|
|
|
<%= l(:label_message_new) %>
|
|
|
|
|
</div>
|
|
|
|
|
<%= form_for @message, :url => new_board_message_path(@board), :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
|
|
|
|
<%= render :partial => 'messages/form', :locals => {:f => f} %>
|
|
|
|
|
<p><%= submit_tag l(:button_create), :class => "whiteButton m3p10 h30" %>
|
|
|
|
|
<%= preview_link(preview_board_message_path(@board), 'message-form' ,target='preview',{:class => 'whiteButton m3p10'} )%> |
|
|
|
|
|
<%= preview_link(preview_board_message_path(@board), 'message-form', target='preview', {:class => 'whiteButton m3p10'}) %>
|
|
|
|
|
|
|
|
|
|
|
<%= link_to l(:button_cancel), "#", :onclick => '$("#add-message").hide(); return false;', :class => 'whiteButton m3p10' %></p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div id="preview" class="wiki"></div>
|
|
|
|
@ -42,12 +44,14 @@
|
|
|
|
|
<!-- <div class="borad-description"><%= h @board.description %></div> -->
|
|
|
|
|
<div class="borad-setitle">
|
|
|
|
|
<span class="borad-topic-count">共有 <%= link_to @topics.count %> 个贴子</span>
|
|
|
|
|
<% if @project.enabled_modules.where("name = 'boards'").count > 0 %>
|
|
|
|
|
<span>
|
|
|
|
|
<%= 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? %>
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-top: 10px">
|
|
|
|
|
<% if @topics.any? %>
|
|
|
|
@ -68,13 +72,24 @@
|
|
|
|
|
<table width="640px" border="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top" width="500px" class=" <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>"><%= 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>
|
|
|
|
|
<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><td align="left" colspan="2" ><span class="font_lighter"><%= authoring topic.created_on, topic.author %><br /></span></td></tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="left" colspan="2">
|
|
|
|
|
<span class="font_lighter"><%= authoring topic.created_on, topic.author %><br/></span></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|