<%= content_for(:header_tags) do %> <%= import_ke(enable_at: false, prettify: false) %> <%#= javascript_include_tag "init_activity_KindEditor",'blog' %> <%= javascript_include_tag "create_kindeditor",'blog' %> <% end %>
<%= link_to image_tag(url_to_avatar(@article.author),:width=>50,:height => 50,:alt=>'图像' ),user_path(@article.author) %>
<% if @article.author.id == User.current.id || User.current.admin? %> <%end%>
<%= link_to @article.author.show_name, user_path(@article.author,:host=>Setting.host_user), :class => "linkBlue2", :target=> "_blank" %>
<%= format_time( @article.created_on)%>
<%= @article.content.to_s.html_safe %>
<%#= link_to_attachments_course @topic, :author => false %> <% if @article.attachments.any?%> <% options = {:author => true, :deletable => false} %> <%= render :partial => 'blog_comments/attachments_links', :locals => {:attachments => @article.attachments, :options => options, :is_float => true} %> <% end %>
回复 <%= @reply_count > 0 ? "(#{@reply_count})" : "" %> <%= render :partial => "praise_tread/praise", :locals => {:activity => @article, :user_activity_id => @article.id, :type => "activity"} %>
<% if @reply_count > 0 %>
<%= render :partial => 'blog_comment_show_replies' %>
<% end %>
<% if !@article.locked? && User.current.logged?%>
<%= form_for :blog_comment, :url => {:action => 'reply',:controller => 'blog_comments',:user_id=>@article.author.id,:blog_id=>@article.blog_id, :id => @article.id}, :html => {:multipart => true, :id => 'message_form'} do |f| %> <%= render :partial => 'blog_comments/reply_form', :locals => {:f => f,:user=>@user,:article=>@article} %> <%= link_to l(:button_cancel), "javascript:void(0)", :onclick => 'message_content_editor.html("");', :class => " grey_btn fr c_white mt10 mr5" %> <%= link_to l(:button_submit), "javascript:void(0)", :onclick => 'submit_message_replay();', :class => "blue_btn fr c_white mt10 mb10", :style => "margin-right: 5px;" %> <% end %>
<% end %>