<% unless @images.empty? %> /> <% end %> />
<% unless @images.empty? %>
>
    <% @images.each do |image| %> > <%= image_fu image, :dialog_thumb, {:alt => image.title, :title => image.title, :id => "image_#{image.id}"} -%> <% end -%>
<%= will_paginate @images, :previous_label => '« Previous', :next_label => 'Next »', :renderer => Refinery::LinkRenderer, :url => {:controller => "admin/images", :action => "insert", :dialog => @dialog} unless @thickbox %>
<% end %>
> <%= render :partial => "form", :locals => {:insert => true} %>
<% if @thickbox %>
<%= submit_tag 'Insert', :id => "submit_button" %> or <%= link_to "Cancel", "", :id => "cancel_button", :class => "close_dialog" %> <%= will_paginate @images, :previous_label => '« Previous', :next_label => 'Next »', :renderer => Refinery::LinkRenderer, :url => {:controller => "admin/images", :action => "insert", :dialog => @dialog } %>
<% end %> <% content_for :head do %> <%= javascript_include_tag 'parse_url' %> <% end %>