|
|
@ -26,10 +26,11 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!--display the board-->
|
|
|
|
<!--display the board-->
|
|
|
|
<div class="borad-title">
|
|
|
|
<div class="project_r_h">
|
|
|
|
<%=h @board.name %>
|
|
|
|
<h2 class="project_h2"><%= l(:label_board_plural) %></h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% if !User.current.logged?%>
|
|
|
|
<% if !User.current.logged?%>
|
|
|
|
<div style="font-size: 14px;margin:20px;">
|
|
|
|
<div style="font-size: 14px;margin:20px;">
|
|
|
|
<%= l(:label_user_login_course_board) %>
|
|
|
|
<%= l(:label_user_login_course_board) %>
|
|
|
@ -37,71 +38,35 @@
|
|
|
|
<hr/>
|
|
|
|
<hr/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="talk_top ml15">
|
|
|
|
<div class="borad-setitle">
|
|
|
|
<p class="fl"><%= l(:label_totle) %><span><%= @topic_count %></span><%= l(:label_course_momes_count) %></p>
|
|
|
|
<span class="borad-topic-count">
|
|
|
|
|
|
|
|
共有
|
|
|
|
|
|
|
|
<%=link_to @topic_count,:controller => 'boards',:action => 'index' %>
|
|
|
|
|
|
|
|
个贴子
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<%= link_to l(:label_message_new),
|
|
|
|
<%= link_to l(:label_message_new),
|
|
|
|
new_board_message_path(@board),
|
|
|
|
new_board_message_path(@board),
|
|
|
|
:class => 'icon icon-add',
|
|
|
|
:class => 'problem_new_btn fl c_dorange' if User.current.logged? %>
|
|
|
|
:onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' if User.current.logged? %>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="padding-top: 10px">
|
|
|
|
|
|
|
|
<% if @topics.any? %>
|
|
|
|
<% if @topics.any? %>
|
|
|
|
<% @topics.each do |topic| %>
|
|
|
|
<% @topics.each do |topic| %>
|
|
|
|
<table class="content-text-list">
|
|
|
|
<div class="problem_main">
|
|
|
|
<tr>
|
|
|
|
<%= link_to image_tag(url_to_avatar(topic.author), :width=>"32",:height=>"32"), user_path(topic.author),:class => 'problem_pic talk_pic fl' %>
|
|
|
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) %></td>
|
|
|
|
<div class="talk_txt fl">
|
|
|
|
<td>
|
|
|
|
<%= link_to h(topic.subject.truncate(40,ommision:'...')), board_message_path(@board, topic),title: topic.subject.to_s,:class => "problem_tit fl fb c_dblue" %>
|
|
|
|
<table width="640px" border="0">
|
|
|
|
<a href="#" class="talk_up fl c_red">置顶</a>
|
|
|
|
<tr>
|
|
|
|
<p>由<%= link_to topic.author,user_path(topic.author),:class => "problem_name" %>添加于<%= format_time(topic.created_on) %></p>
|
|
|
|
<td valign="top" width="500px" class=" <%= topic.sticky? ? 'sticky' : '' %>
|
|
|
|
|
|
|
|
<%= topic.locked? ? 'locked' : '' %>">
|
|
|
|
|
|
|
|
<%= link_to h(topic.subject.truncate(40,ommision:'...')), board_message_path(@board, topic),title: topic.subject.to_s %>
|
|
|
|
|
|
|
|
</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 align="left" colspan="2" >
|
|
|
|
|
|
|
|
<span class="font_lighter">
|
|
|
|
|
|
|
|
<%= authoring topic.created_on, topic.author %>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="pagination">
|
|
|
|
|
|
|
|
<%= pagination_links_full @topic_pages, @topic_count %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%=link_to (l(:label_reply) + topic.replies_count.to_s), board_message_path(@board, topic),:class => "talk_btn fr c_white" %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
</div><!--讨论主类容 end-->
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<p class="nodata">
|
|
|
|
<p class="nodata">
|
|
|
|
<%= l(:label_no_data) %>
|
|
|
|
<%= l(:label_no_data) %>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<ul class="wlist">
|
|
|
|
|
|
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
<% other_formats_links do |f| %>
|
|
|
|
<% other_formats_links do |f| %>
|
|
|
|
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
|
|
|
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|