|
|
|
@ -32,6 +32,7 @@
|
|
|
|
|
<p class="c_dark mb5">讨论区共有<span class="c_orange"><%= @topic_count %></span>个帖子</p>
|
|
|
|
|
<% if @topics.any? %>
|
|
|
|
|
<% @topics.each do |topic| %>
|
|
|
|
|
|
|
|
|
|
<div class="talkmain_box" style="border:none; margin-bottom:0; border-bottom: 1px dashed #d9d9d9;">
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(topic.author), :width=>"42",:height=>"42"), user_path(topic.author),:class =>'talkmain_pic fl' %>
|
|
|
|
|
<div class="talkmain_txt fl mt5">
|
|
|
|
@ -57,19 +58,24 @@
|
|
|
|
|
<a href="javascript:void(0)" class="talk_up fr c_red" style="margin-right: 10px;"><%= l(:label_board_sticky)%></a>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
|
<p id="contentmessage<%=topic.id %>" class="project_board_content break_word">
|
|
|
|
|
<script>
|
|
|
|
|
$(function(){if($("#contentmessage<%=topic.id %>").height()>55){$("#project_show_<%= topic.id%>").show();}});
|
|
|
|
|
</script>
|
|
|
|
|
<div class="project_board_content break_word" id="content_<%=topic.id%>">
|
|
|
|
|
<div id="contentmessage<%=topic.id %>" class="upload_img">
|
|
|
|
|
<%= topic.content %>
|
|
|
|
|
</p>
|
|
|
|
|
<% if topic.content.size > 300 %>
|
|
|
|
|
<p>
|
|
|
|
|
<label id="expend_more_information<%= topic.id%>" onclick="show_more_reply('#contentmessage<%=topic.id %>','#expend_more_information<%= topic.id%>','#arrow<%=topic.id%>');" value="show_more">[展开]</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p style="display: none" id="project_show_<%= topic.id%>">
|
|
|
|
|
<label id="expend_more_information<%= topic.id%>" onclick="show_more_reply('#content_<%=topic.id%>','#expend_more_information<%= topic.id%>','#arrow<%=topic.id%>');" value="show_more">[展开]</label>
|
|
|
|
|
<span class="g-arr-down">
|
|
|
|
|
<img id="arrow<%=topic.id%>" src="/images/jiantou.jpg" width="12" height="6" />
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<%= link_to_attachments_course topic, :author => false %>
|
|
|
|
|
|
|
|
|
|
<%= l(:label_activity_time)%>: <%= format_time topic.created_on %>
|
|
|
|
@ -177,6 +183,7 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
|
|
|