2016-04-29 14:46:40 +08:00
|
|
|
|
<div class="sn-innner-content">
|
|
|
|
|
<div class="sn-row sn-bg-white">
|
2016-04-29 16:14:08 +08:00
|
|
|
|
<div class="sn-content-position"> 您的位置:<%= link_to "首页", organization_path(@organization) %> >
|
|
|
|
|
<%= @org_subfield.name %> >
|
|
|
|
|
<%= link_to @subdomain.name, org_subfield_sub_domain_path(@subdomain) %> >
|
|
|
|
|
<%= link_to @document.title, org_subfield_sub_domain_sub_document_comment_path(@document) %> </div>
|
2016-04-29 14:46:40 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="sn-inner-newslist">
|
2016-04-29 16:14:08 +08:00
|
|
|
|
<h2 class="sn-inner-newsh2"><%= @document.title %></h2>
|
2016-04-29 14:46:40 +08:00
|
|
|
|
<div class="sn-inner-newscon">
|
|
|
|
|
<p class=" sn-inner-psmall">来源:卫星导航仿真与测试开放实验室 发布时间::2016-04-08 浏览:200次</p>
|
2016-04-29 16:14:08 +08:00
|
|
|
|
<p class=" sn-inner-pcon"><%= @document.content.html_safe %></p>
|
2016-04-29 14:46:40 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!--回复-->
|
2016-05-04 09:45:02 +08:00
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<% comments_for_doc = @document.children.reorder("created_at desc") %>
|
|
|
|
|
<% count = @document.children.count() %>
|
|
|
|
|
<div class="sn-replybox">
|
|
|
|
|
<h2 class="sn-reply-h2">留言板<span class="sn-fr sn-f14 sn-font-grey3 sn-mt10"><%= count %>条留言</span></h2>
|
|
|
|
|
<%= form_for :org_comment, :url => {:action => 'add_reply_in_doc',:controller => 'sub_document_comments', :id => @document.id, :flag => true}, :html => {:multipart => true, :id => 'message_form', :class => "sn-reply-form", } do |f| %>
|
|
|
|
|
<textarea class="sn-reply-text" name="sub_content" ></textarea>
|
|
|
|
|
<%#= f.kindeditor :sub_content,:width=>'99%',:height => '100px;',:editor_id=>'message_content_editor', :class => "sn-reply-text" %>
|
|
|
|
|
<div class="sn-reply-btnbox">
|
|
|
|
|
<%= link_to l(:button_reply), "javascript:void(0)", :onclick => "$('#message_form').submit();", :class => "submit-btn" %>
|
|
|
|
|
</div>
|
|
|
|
|
<%#= link_to l(:button_cancel), "javascript:void(0)", :onclick => 'message_content_editor.html("");', :class => " grey_btn fr c_white mt10 mr5" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="sn-reply-comment">
|
|
|
|
|
<h2 class="sn-comment-h2">全部评论</h2>
|
|
|
|
|
<div class="">
|
|
|
|
|
<% comments_for_doc.each_with_index do |reply,i| %>
|
|
|
|
|
<div class="sn-comment-listbox">
|
|
|
|
|
<a href="javascript:void(0)" class="sn-reply-userpic fl"><img src="images/img-news-con.jpg" width="824" height="522" alt="" /></a>
|
|
|
|
|
<%= link_to User.find(reply.creator_id).realname, user_url_in_org(reply.creator_id), :class => "sn-reply-username fl" %><span class="fl"><%= time_from_now(reply.created_at) %></span>
|
|
|
|
|
<p class="fl sn-reply-usertxt "><%= reply.content.html_safe unless reply.content.nil? %></p>
|
|
|
|
|
<!--<a href="javascript:void(0)" target="_blank" class="sn-reply-zan fl">(100)</a>-->
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="sn-reply-more">
|
|
|
|
|
<a href="javascript:void(0)" class="">加载更多</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-04-29 14:46:40 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-05-04 09:45:02 +08:00
|
|
|
|
<% end %>
|
2016-04-29 14:46:40 +08:00
|
|
|
|
</div>
|