资源栏目不能添加二级目录

This commit is contained in:
huang 2016-05-06 15:31:45 +08:00
parent 8f492f6108
commit 9d79fd3777
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,9 @@
<span class="fr">|</span> <span class="fr">|</span>
<!--escape_javascript auto_complete_issues_path(:project_id => @project, :scope => (Setting.cross_project_issue_relations? ? 'all' : nil)--> <!--escape_javascript auto_complete_issues_path(:project_id => @project, :scope => (Setting.cross_project_issue_relations? ? 'all' : nil)-->
<!--<a href="javascript:void(0);" class="linkGrey fr mr5" onclick="org_submain_new('<%#= escape_javascript new_org_subfield_sub_domain_path(:org_subfield_id => field.id, :field => field) %>');">添加二级目录</a>--> <!--<a href="javascript:void(0);" class="linkGrey fr mr5" onclick="org_submain_new('<%#= escape_javascript new_org_subfield_sub_domain_path(:org_subfield_id => field.id, :field => field) %>');">添加二级目录</a>-->
<% unless field.field_type == "Resource" %>
<%= link_to("添加二级目录", new_org_subfield_sub_domain_path(:org_subfield_id => field.id, :field => field), :class => "linkGrey fr mr5", :remote => true) %> <%= link_to("添加二级目录", new_org_subfield_sub_domain_path(:org_subfield_id => field.id, :field => field), :class => "linkGrey fr mr5", :remote => true) %>
<% end%>
</li> </li>
<div class="cl"></div> <div class="cl"></div>
<%= render :partial => 'organizations/subfield_sub_domains_list', :locals => {:field => field} %> <%= render :partial => 'organizations/subfield_sub_domains_list', :locals => {:field => field} %>