置顶贴子显示

This commit is contained in:
z9hang 2015-03-27 15:39:59 +08:00
parent 7b70369438
commit 5ec28d8fc3
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@
<%= link_to image_tag(url_to_avatar(topic.author), :width=>"32",:height=>"32"), user_path(topic.author),:class => 'problem_pic talk_pic fl' %>
<div class="talk_txt fl">
<%= 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" %>
<a href="#" class="talk_up fl c_red">置顶</a>
<% if topic.sticky? %>
<a href="#" class="talk_up fl c_red">置顶</a>
<% end %>
<br/>
<p>由<%= link_to topic.author,user_path(topic.author),:class => "problem_name" %>添加于<%= format_time(topic.created_on) %></p>
</div>
<%=link_to (l(:label_reply) + topic.replies_count.to_s), board_message_path(@board, topic),:class => "talk_btn fr c_white" %>