<% if field.field_type == "Post" && field.hide == 0 %>
<% if field.field_type == "Post" && field.hide == 0 %>
<li class="nav-element">
<li class="nav-element">
<% 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) %>