Sha256: 84e5b2ad72f22d42bc556c20edceb6a8ce15f1a8f5cb9a86087f731d03ee2a77
Contents?: true
Size: 1.12 KB
Versions: 5
Compression:
Stored size: 1.12 KB
Contents
<% Alchemy::Deprecation.warn "The `alchemy/admin/resources/_table` partial is deprecated. Please `render 'alchemy/admin/resources/_resource_table'` instead and update it to your needs." %> <% if resources_instance_variable.any? %> <table class="list" id="<%= resource_handler.resources_name %>_list"> <thead> <tr> <% if local_assigns[:icon] %> <th class="icon"></th> <% end %> <% resource_handler.sorted_attributes.each do |attribute| %> <th class="<%= attribute[:type] %> <%= attribute[:name] %>"> <%= sort_link [:resource_url_proxy, @query], sortable_resource_header_column(attribute), resource_handler.model.human_attribute_name(attribute[:name]), default_order: attribute[:type].to_s =~ /date|time/ ? 'desc' : 'asc' %> </th> <% end %> <th class="tools"></th> </tr> </thead> <tbody> <%= render_resources(icon: local_assigns[:icon]) %> </tbody> </table> <% elsif search_filter_params[:q].present? %> <p><%= Alchemy.t('Nothing found') %></p> <% end %> <%= paginate resources_instance_variable, scope: resource_url_proxy, theme: 'alchemy' %>
Version data entries
5 entries across 5 versions & 1 rubygems