<div class="homepagePostReplyBanner">
  <div class="homepagePostReplyBannerCount">回复
    <sapn class="mr15"><%= @comments_count>0 ? "（#{@comments_count}）" : "" %></sapn><span style="color: #cecece;">▪</span>
        <span id="praise_count_<%=@news.id %>">
          <%=render :partial=> "praise_tread/praise", :locals => {:activity=>@news, :user_activity_id=>@news.id,:type=>"activity"}%>
        </span>
  </div>
</div>
<% unless @comments.empty? %>
    <div class="" id="reply_div_<%=@news.id %>">
      <%= render :partial => 'news/news_replies_detail', :locals => {:object => object} %>
    </div>

<% end %>
<div class="cl"></div>
<% if @news.commentable? %>
    <div class="talkWrapMsg" nhname="about_talk_reply">
      <em class="talkWrapArrow"></em>
      <div class="cl"></div>
      <div class="talkConIpt ml5 mb10" id="reply<%= @news.id %>">
        <%= form_for @comment, :url=>{:controller => 'comments', :action => 'create', :id => @news}, :html => {:multipart => true, :id => 'add_comment_form'} do |f| %>
            <div class="box"  id="news_comment">
              <%= 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 }%>
            </div>
            <p id="add_reply_news"></p>
            <p class="mt10">
              <a href="javascript:void(0)" class="grey_btn fr ml10 mr5" onclick="KindEditor.instances[0].html('');">
                <%= l(:label_cancel_with_space) %>
              </a>
              <a href="javascript:void(0)" class="blue_btn fr" id="news_submit_comment">
                <%= l(:label_comment_with_space) %>
              </a>
            </p>
        <% end %>
        <div class="cl"></div>
      </div>
    </div>
<% end %>