模式二 二级目录调整

This commit is contained in:
huang 2016-05-05 20:54:43 +08:00
parent c400b44230
commit e9c3d5cceb
1 changed files with 9 additions and 3 deletions

View File

@ -1,15 +1,21 @@
<div class="sn-inner-body"> <div class="sn-inner-body">
<div class="sn-innner-content"> <div class="sn-innner-content">
<div class="sn-row sn-bg-white"> <div class="sn-row sn-bg-white">
<div class="sn-content-position"> 您的位置:首页 > 数据资源 > 仿真数据 </div> <div class="sn-content-position">
您的位置:<%= link_to "首页", organization_path(@organization), :class => "sn-link-grey2" %> &gt;
<%= @org_subfield.name %> &gt;
<%= link_to @subdomain.name, org_subfield_sub_domain_path(@subdomain, :org_subfield_id => @org_subfield.id), :class => "sn-link-grey2" %>
</div>
</div> </div>
<div class="sn-inner-newslist"> <div class="sn-inner-newslist">
<h2 class="sn-inner-newsh2">最新资讯</h2> <h2 class="sn-inner-newsh2"><%= @subdomain.name %></h2>
<ul> <ul>
<% documents.each do |document| %> <% documents.each do |document| %>
<li> <li>
<div class="sn-circle fl"></div><%=link_to document.title, org_subfield_sub_domain_sub_document_comment_path(document, :org_subfield_id => @org_subfield, :sub_domain_id => @subdomain), :class => "sn-newslist-titile fl", :target => "_blank" %> <div class="sn-circle fl"></div><%=link_to document.title, org_subfield_sub_domain_sub_document_comment_path(document, :org_subfield_id => @org_subfield, :sub_domain_id => @subdomain), :class => "sn-newslist-titile fl", :target => "_blank" %>
<span class=" txt-grey fr"><%= format_date(document.created_at) %>></span><a href="javascript:void(0)" target="_blank" class="sn-newslist-reply fr mr10">回复100</a><a href="javascript:void(0)" target="_blank" class="sn-newslist-zan fr mr10">100</a> <span class=" txt-grey fr"><%= time_from_now(document.created_at) %></span>
<a href="javascript:void(0)" target="_blank" class="sn-newslist-reply fr mr10">回复(<%= document.children.count %></a>
<!--<a href="javascript:void(0)" target="_blank" class="sn-newslist-zan fr mr10">100</a>-->
<div class="cl"></div> <div class="cl"></div>
</li> </li>
<% end %> <% end %>