|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
<div class="homepagePostDes">
|
|
|
|
|
<div class="homepagePostTo">
|
|
|
|
|
<%= link_to User.find(document.creator_id), user_path(document.creator.id), :class => "newsBlue mr15" %>
|
|
|
|
|
TO <%= link_to document.organization.name, organization_path(document.organization) %> | 组织
|
|
|
|
|
TO <%= link_to document.organization.name, organization_path(document.organization), :class => "newsBlue" %> | 组织
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostTitle postGrey"><%= document.title %></div>
|
|
|
|
|
<div class="homepagePostDate">
|
|
|
|
@ -40,7 +40,8 @@
|
|
|
|
|
</div>
|
|
|
|
|
<% comments_for_doc = document.children.reorder("created_at desc") %>
|
|
|
|
|
<% count = document.children.count() %>
|
|
|
|
|
<div class="homepagePostReply" style="background-color: #f1f1f1;" id="<%= document.id %>">
|
|
|
|
|
|
|
|
|
|
<div class="homepagePostReply fl" style="background-color: #f1f1f1;" id="<%= document.id %>">
|
|
|
|
|
<div class="homepagePostReplyBanner" style="display:<%= count == 0?'none':'block' %>">
|
|
|
|
|
<div class="homepagePostReplyBannerCount">回复(<%= count %>)</div>
|
|
|
|
|
<% if count > 3 %>
|
|
|
|
@ -72,7 +73,7 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostReplyContainer">
|
|
|
|
|
<div class="homepagePostReplyContainer borderBottomNone minHeight48">
|
|
|
|
|
<div class="homepagePostReplyPortrait mr15">
|
|
|
|
|
<%=link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33", :alt => "用户头像"), user_path(User.current) %>
|
|
|
|
|
</div>
|
|
|
|
|