Sha256: 477d2c26594cdfb57b0caacda59ca84287412246c682631616fd759a56bce63d

Contents?: true

Size: 1.31 KB

Versions: 14

Compression:

Stored size: 1.31 KB

Contents

<div id='actions'>
  <ul>
    <li>
      <%= link_to "Create New Image", new_admin_image_url, :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'>
  <div id='list_actions'>
  	<%= render :partial => "/shared/admin/search", :locals => {:url => admin_images_url} %>
  </div>
  
  <% 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 => '&laquo;', :next_label => '&raquo;' %>
  		<%= render :partial => "#{current_image_view}_view" %>
  		<%= will_paginate @images, :previous_label => '&laquo;', :next_label => '&raquo;' %>
    <% 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

14 entries across 14 versions & 1 rubygems

Version Path
refinerycms-0.9.4.5 vendor/plugins/images/app/views/admin/images/index.html.erb
refinerycms-0.9.4.4 vendor/plugins/images/app/views/admin/images/index.html.erb
refinerycms-0.9.4.3 vendor/plugins/images/app/views/admin/images/index.html.erb
refinerycms-0.9.4.2 vendor/plugins/images/app/views/admin/images/index.html.erb
refinerycms-0.9.4.1 vendor/plugins/images/app/views/admin/images/index.html.erb
refinerycms-0.9.4 vendor/plugins/images/app/views/admin/images/index.html.erb
refinerycms-0.9.3 vendor/plugins/images/app/views/admin/images/index.html.erb
refinerycms-0.9.2.2 vendor/plugins/images/app/views/admin/images/index.html.erb
refinerycms-0.9.2.1 vendor/plugins/images/app/views/admin/images/index.html.erb
refinerycms-0.9.2 vendor/plugins/images/app/views/admin/images/index.html.erb
refinerycms-0.9.1.2 vendor/plugins/images/app/views/admin/images/index.html.erb
refinerycms-0.9.1.1 vendor/plugins/images/app/views/admin/images/index.html.erb
refinerycms-0.9.1 vendor/plugins/images/app/views/admin/images/index.html.erb
refinerycms-0.9.0 vendor/plugins/images/app/views/admin/images/index.html.erb