首页的隐藏可见
This commit is contained in:
parent
f4a5aeec07
commit
a267c75ec7
|
@ -82,16 +82,16 @@
|
||||||
<% @subfield_content.each do |field| %>
|
<% @subfield_content.each do |field| %>
|
||||||
<% if is_default_field?(field) %>
|
<% if is_default_field?(field) %>
|
||||||
<% case field.name %>
|
<% case field.name %>
|
||||||
<% when 'activity' %>
|
<% when 'activity' %>
|
||||||
<li class="nav-element-default">
|
<li class="nav-element-default" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
<%= link_to "首页", organization_path(@organization), :class => "sn-link-white" %>
|
<%= link_to "首页", organization_path(@organization), :class => "sn-link-white" %>
|
||||||
</li>
|
</li>
|
||||||
<% when 'course' %>
|
<% when 'course' %>
|
||||||
<li class="nav-element-default">
|
<li class="nav-element-default" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
<a href="#course_<%= field.id %>" class="sn-link-white"> 课程动态</a>
|
<a href="#course_<%= field.id %>" class="sn-link-white"> 课程动态</a>
|
||||||
</li>
|
</li>
|
||||||
<% when 'project' %>
|
<% when 'project' %>
|
||||||
<li class="nav-element-default">
|
<li class="nav-element-default" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
<a href="#project_<%= field.id %>" class="sn-link-white">项目动态</a>
|
<a href="#project_<%= field.id %>" class="sn-link-white">项目动态</a>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
<div class="sn-row sn-subnav-position sn-grey-opacity" style="display:none;">
|
<div class="sn-row sn-subnav-position sn-grey-opacity" style="display:none;">
|
||||||
<ul class="sn-sub-nav" style="display:<%= if_hidden_subdomain( field) ? 'block':'none' %>;">
|
<ul class="sn-sub-nav" style="display:<%= if_hidden_subdomain( field) ? 'block':'none' %>;">
|
||||||
<% field.sub_domains.each do |subdomain| %>
|
<% field.sub_domains.each do |subdomain| %>
|
||||||
<li><%=link_to subdomain.name, org_subfield_sub_domain_sub_document_comments_path(subdomain, :org_subfield_id => field.id), :class => "sn-link-grey" %></li>
|
<li><%=link_to subdomain.name, org_subfield_sub_domain_sub_document_comments_path(subdomain, :org_subfield_id => field.id), :class => "sn-link-grey" %> | </li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue