From 9d79fd377782ec44137ea41c366b984f135ec981 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 6 May 2016 15:31:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E6=A0=8F=E7=9B=AE=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E6=B7=BB=E5=8A=A0=E4=BA=8C=E7=BA=A7=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/organizations/_subfield_list.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/organizations/_subfield_list.html.erb b/app/views/organizations/_subfield_list.html.erb index 268daae41..4d24f3813 100644 --- a/app/views/organizations/_subfield_list.html.erb +++ b/app/views/organizations/_subfield_list.html.erb @@ -98,7 +98,9 @@ | - <%= link_to("添加二级目录", new_org_subfield_sub_domain_path(:org_subfield_id => field.id, :field => field), :class => "linkGrey fr mr5", :remote => true) %> + <% 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) %> + <% end%>
<%= render :partial => 'organizations/subfield_sub_domains_list', :locals => {:field => field} %>