Sha256: 506142f932b00e9badd41fb6c03ac98c5edaf84da38598dda821551a3d092ff9
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 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 => '«', :next_label => '»' %> <% if RefinerySetting.find_or_set(:group_resources_by_date_uploaded, true) %> <% @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 => '«', :next_label => '»' %> <% 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-0.9.5.13 | vendor/plugins/resources/app/views/admin/resources/index.html.erb |