Sha256: 75b21b687dd66ca077e0415771b900cf20791a7f7d8081b85f83efebc8204863
Contents?: true
Size: 1.35 KB
Versions: 7
Compression:
Stored size: 1.35 KB
Contents
<div id='actions'> <ul> <li> <%= render :partial => "/shared/admin/search", :locals => {:url => admin_images_url} %> </li> <li> <%= link_to "Create New Image", new_admin_image_url(:dialog => true, :width => 600, :height => 300), :class => "add_icon" %> </li> </ul> <ul> <% image_views.delete_if {|image_view| image_view.to_s == current_image_view.to_s }.each do |image_view| %> <li> <%= link_to "Switch to #{image_view.to_s.titleize} View", admin_images_url(:view => image_view, :page => params[:page]), :class => "reorder_icon" %> </li> <% end %> </ul> </div> <div id='records'> <% if searching? %> <h2>Search Results for "<%= params[:search] %>"</h2> <% if @images.size > 0 %> <%= render :partial => "#{current_image_view}_view" %> <% else %> <p>Sorry, no results found.</p> <% end %> <% else %> <% if @images.size > 0 %> <%= will_paginate @images, :previous_label => '«', :next_label => '»' %> <%= render :partial => "#{current_image_view}_view" %> <%= will_paginate @images, :previous_label => '«', :next_label => '»' %> <% else %> <p> <strong> There are no images yet. Click "Create New Image" to add your first image. </strong> </p> <% end %> <% end %> </div>
Version data entries
7 entries across 7 versions & 1 rubygems