<%= content_for(:header_tags) do %>
    <%= import_ke(enable_at: false, prettify: false) %>
    <%= javascript_include_tag "create_kindeditor" %>
<% end %>

<style type="text/css">
    /*回复框*/
    /*.homepagePostReplyInputContainer .ke-toolbar {display: none; width: 400px; border: none; background: none; padding: 0px 0px;}*/
    /*.homepagePostReplyInputContainer .ke-toolbar-icon {line-height: 26px; font-size: 14px; padding-left: 26px;}*/
    /*.homepagePostReplyInputContainer .ke-toolbar-icon-url {background-image: url(/images/public_icon.png)}*/
    /*.homepagePostReplyInputContainer .ke-outline {padding: 0px 0px; line-height: 26px; font-size: 14px;}*/
    /*.homepagePostReplyInputContainer .ke-icon-emoticons {background-position: 0px -671px; width: 50px; height: 26px;}*/
    /*.homepagePostReplyInputContainer .ke-icon-emoticons:hover {background-position: -79px -671px; width: 50px; height: 26px;}*/
    /*.homepagePostReplyInputContainer .ke-outline {border: none;}*/
    /*.homepagePostReplyInputContainer .ke-inline-block {display: none;}*/
    /*.homepagePostReplyInputContainer .ke-container {float: left;}*/
</style>
<script type="text/javascript">
    $(function(){
        $("#RSide").removeAttr("id");
        $("#Container").css("width","1000px");
    });
    function reset_article(){
        $("#message_subject").val("");
        $("#subjectmsg").text("");
        document.getElementById("blog_comment_sticky").checked=false;
        document.getElementById("blog_comment_locked").checked=false;
        $("#topic_attachments").html("<%= escape_javascript(render :partial => 'blog_comments/blog_attachments', :locals => {:container => BlogComment.new})%>");
        message_content_editor.html("");
        $("#topic_editor").slideToggle();
    }
    <%# if @is_new%>
//    $(function(){
//        $("#message_subject").focus();
//    });
    <%#end%>
</script>

<div class="homepageRight mt0">
  <div class="homepageRightBanner">
    <div class="f16 fl fontGrey3">
      <%= @user.name%>的博客
    </div>
  </div>

  <% if User.current.logged? && User.current.id == @user.id %>
      <%= labelled_form_for @article, :url =>{:controller=>'blog_comments',:action => 'create',:user_id=>user.id , :blog_id => blog.id},
                            :html => {:nhname=>'form',:multipart => true, :id => 'message-form'} do |f| %>
          <%= render :partial => 'blog_comments/new', :locals => {:f => f, :article => @article, :edit_mode => false, :user => @user} %>
      <% end %>
  <% end %>

  <% if topics%>
     <%= render :partial => 'blogs/article', :locals => {:topics => topics} %>
  <% end%>
</div>
<script type="text/javascript">
    $("#show_more_course_topic").mouseover(function () {
        $("#more_topic_link").click();
    });
</script>
