<% content_for :stylesheets do %> <%= stylesheet_link_tag "admin/vimeo_videos" %> <% end %> <% content_for :javascripts do %> <%= javascript_include_tag "refinery/vimeo_videos" %> <% end %> <% user_can_modify_vimeo_videos = Refinery::Plugins.active.names.include?("vimeo_videos") %>
<% if (any_vimeo_videos = @vimeo_videos.any?) %> /> <% end %> <% if user_can_modify_vimeo_videos %> /> <% end %>
<% if any_vimeo_videos or user_can_modify_vimeo_videos %> <%= render :partial => 'existing_vimeo_video' if any_vimeo_videos %> <% if user_can_modify_vimeo_videos %>
> <%= render :partial => "form", :locals => {:insert => true} %>
<% end %> <% else %> <% flash.now[:error] = t('.no_files') %> <%= render :partial => "/shared/admin/form_actions", :locals => { :f => nil, :cancel_url => '', :hide_cancel => false, :hide_delete => true, :hide_submit => true, :cancel_button_text => t('close', :scope => 'shared.admin.form_actions'), :cancel_title => nil } %> <% end %>
<% content_for :javascripts do %> <% end %>