Sha256: 51e20a94460016f69f8b3b7d59621e8bd8fc922795f19c41b0c0798cd9d9e5ef
Contents?: true
Size: 1.55 KB
Versions: 10
Compression:
Stored size: 1.55 KB
Contents
<div id='actions'> <ul> <li> <%= render :partial => "/shared/admin/search", :locals => {:url => admin_resources_url} %> </li> <li> <%= link_to t('.upload_new'), new_admin_resource_url(:dialog => true, :width => 600, :height => 300), :class => "add_icon" %> </li> </ul> </div> <div id='records' class='files'> <% if searching? %> <h2><%= t('shared.admin.search.results_for', :query => params[:search]) %></h2> <% if @resources.any? %> <ul> <%= render :partial => "resource", :collection => @resources %> </ul> <% else %> <p><%= t('shared.admin.search.no_results') %></p> <% end %> <% else %> <% if @resources.any? -%> <%= will_paginate @resources, :previous_label => '«', :next_label => '»' %> <% if RefinerySetting.find_or_set(:group_resources_by_date_uploaded, true) %> <% @grouped_resources.each do |container| %> <% date_time = (resource_group = container.last).first.created_at %> <% date = Date.parse(date_time.to_s) %> <h3><%= l(date, :format => :long ) %></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><%= t('.no_files_yet') %></strong> </p> <% end -%> <% end %> </div>
Version data entries
10 entries across 10 versions & 1 rubygems