<% user_can_modify_resources = current_refinery_user.has_plugin?("refinery_files") %>
<% if (any_resources = @resources.any?) %> /> <% end %> <% if user_can_modify_resources %> /> <% end %>
<% if any_resources or user_can_modify_resources %> <%= render 'existing_resource' if any_resources %> <% if user_can_modify_resources %>
> <%= render 'form', :insert => true %>
<% end %> <% else %> <% flash.now[:error] = t('.no_files') %> <%= render '/refinery/admin/form_actions', :f => nil, :cancel_url => '', :hide_cancel => false, :hide_delete => true, :hide_submit => true, :cancel_button_text => t('close', :scope => 'refinery.admin.form_actions'), :cancel_title => nil %> <% end %>
<% content_for :javascripts do %> <% end %>