回复 <%= @comments_count>0 ? "(#{@comments_count})" : "" %> <%=render :partial=> "praise_tread/praise", :locals => {:activity=>@news, :user_activity_id=>@news.id,:type=>"activity"}%>
<% unless @comments.empty? %>
<%= render :partial => 'news/news_replies_detail', :locals => {:object => object} %>
<% end %>
<% if @news.commentable? %>
<%= form_for @comment, :url=>{:controller => 'comments', :action => 'create', :id => @news}, :html => {:multipart => true, :id => 'add_comment_form'} do |f| %>
<%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %> <%= f.kindeditor :comments, :editor_id => 'comment_editor', :owner_id => @comment.nil? ? 0: @comment.id, :owner_type => OwnerTypeHelper::COMMENT, :width => '99%', :height => 100, :minHeight=>100, :input_html => { :id => 'comment_content', :class => 'talk_text fl', :maxlength => 5000 }%>

<%= l(:label_cancel_with_space) %> <%= l(:label_comment_with_space) %>

<% end %>
<% end %>