组织链接

hjq_beidou
huang 9 years ago
parent 5ec9e31626
commit 7be18b80b4

@ -43,7 +43,17 @@
<% else %> <% else %>
<% if field.field_type == "Post" && field.hide == 0 %> <% if field.field_type == "Post" && field.hide == 0 %>
<li><a href="#message_<%= field.id %>" class="sn-link-white"><%= field.name %></a></li> <li>
<% if !field.subfield_subdomain_dir.nil? %> <!--讨论帖子-->
<% if !request.local? and Secdomain.where("sub_type=2 and pid=?", @organization.id).count > 0 and Secdomain.where("sub_type=2 and pid=?", @organization.id).map(&:subname).include?(request.subdomain) %>
<%= link_to field.name, show_subfield_without_id_path(:sub_dir_name => field.subfield_subdomain_dir.name), :class => "sn-link-white", :target => "_blank" %>
<% else %>
<%= link_to field.name, show_org_subfield_organization_path(:id => @organization.id, :sub_dir_name => field.subfield_subdomain_dir.name), :class => "sn-link-white", :target => "_blank" %>
<% end %>
<% else %>
<%= link_to field.name, organization_path(@organization, :org_subfield_id => field.id), :class => "sn-link-white", :target => "_blank" %>
<% end %>
</li>
<!--二级目录--> <!--二级目录-->
<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' %>;">
@ -55,7 +65,7 @@
</div> </div>
<% elsif field.field_type == "Resource" && field.hide == 0 %> <% elsif field.field_type == "Resource" && field.hide == 0 %>
<li class="nav-element"> <li class="nav-element">
<a href="#resource_<%= field.id %>" class="sn-link-white"><%= field.name %></a> <%= link_to field.name, org_subfield_files_path(field), :class => "sn-link-white", :target => "_blank" %>
</li> </li>
<% end %> <% end %>
<% end %> <% end %>

Loading…
Cancel
Save