Sha256: 52d46e55e1d66b67ffc49b5a1d2b6ddb570e7cfd07b0d987a76cd344b0bfc3b2

Contents?: true

Size: 1.38 KB

Versions: 3

Compression:

Stored size: 1.38 KB

Contents

<div id='actions'>
	<ul>
		<li>
			<%= render :partial => "/shared/admin/search", :locals => {:url => admin_resources_url} %>
		</li>
		<li>
			<%= link_to "Upload New File", new_admin_resource_url, :class => "add_icon" %>
		</li>
	</ul>
</div>
<div id='records'>
  <% if searching? %>
    <h2>Search Results for "<%= params[:search] %>"</h2>
    <% if @resources.size > 0 %>
  			<%= render :partial => "resource", :collection => @resources %>
    <% else %>
      <p>Sorry, no results found.</p>
    <% end %>
	<% else %>
    <% if @resources.size > 0 -%>
    	<%= will_paginate @resources, :previous_label => '&laquo;', :next_label => '&raquo;' %>
    	<% if RefinerySetting.find_or_set(:group_resources_by_date_uploaded, false) %>
    	  <% @grouped_resources.each do |container| %>
          <h3><%= (resource_group = container.last).first.created_at.strftime("%A, %d %B %Y") %></h3>
          <ul>
            <%= render :partial => "resource", :collection => resource_group %>
          </ul>
        <% end %>
      <% else %>
        <ul>
      	  <%= render :partial => "resource", :collection => @resources %>
      	</ul>
      <% end %>
    	<%= will_paginate @resources, :previous_label => '&laquo;', :next_label => '&raquo;' %>
    <% else -%>
    	<p>
    		<strong>There are no files yet. Click "Upload New Files" to add your first file.</strong>
    	</p>
    <% end -%>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
refinerycms-0.9.5.12 vendor/plugins/resources/app/views/admin/resources/index.html.erb
refinerycms-0.9.5.11 vendor/plugins/resources/app/views/admin/resources/index.html.erb
refinerycms-0.9.5.10 vendor/plugins/resources/app/views/admin/resources/index.html.erb