<% @replies.each do |reply| %>
<%= link_to image_tag(url_to_avatar(reply.author), :width => 33,:height => 33), user_path(reply.author) %>
<%= render :partial => 'users/message_contents', :locals => {:comment => reply, :type => 'Message', :user_activity_id => @topic.id}%>
<%= reply.content.html_safe%>
<%= render :partial => "praise_tread/praise", :locals => {:activity => reply, :user_activity_id => reply.id, :type => "reply"} %> <%= link_to( l(:button_reply), {:action => 'quote', :id => reply}, :remote => true, :method => 'get', :title => l(:button_reply)) if !@topic.locked? && authorize_for('messages', 'reply') %> <%= link_to( l(:button_delete), {:action => 'destroy', :id => reply}, :method => :post, :id => "delete_reply_#{reply.id}", :class => 'fr mr20 undis', :data => {:confirm => l(:text_are_you_sure)}, :title => l(:button_delete) ) if reply.course_destroyable_by?(User.current) %>

<% end %> <% if @limit_count > @page * @limit + 10 %>
<%= link_to '点击展开更多回复', board_message_path(@topic.board_id, @topic, :page => @page),:remote=>true %>
<% end %>