Sha256: 430df9a8d38bd7aeb74907082fff0fd897cf023ee8b90aa5c480b9126fa348af

Contents?: true

Size: 498 Bytes

Versions: 11

Compression:

Stored size: 498 Bytes

Contents

<%#
Local variables:
* grid - instance of Datagrid
* assets - Array of database Entities
* options - passed options Hash
%>
<%= content_tag :table, options[:html] do %>
  <thead>
    <%= datagrid_header(grid, options) %>
  </thead>
  <tbody>
    <% if assets.empty? %>
    <tr><td class="noresults" colspan="100%"><%= I18n.t 'datagrid.no_results', :default => '&mdash;&mdash;'.html_safe %></td></tr>
    <% else %>
    <%= datagrid_rows(grid, assets, options) %>
    <% end %>
  </tbody>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
datagrid-0.9.3 app/views/datagrid/_table.html.erb
datagrid-0.9.2 app/views/datagrid/_table.html.erb
datagrid-0.9.0 app/views/datagrid/_table.html.erb
datagrid-0.8.4 app/views/datagrid/_table.html.erb
datagrid-0.8.3 app/views/datagrid/_table.html.erb
datagrid-0.8.2 app/views/datagrid/_table.html.erb
datagrid-0.8.1 app/views/datagrid/_table.html.erb
datagrid-0.8.0 app/views/datagrid/_table.html.erb
datagrid-0.7.1 app/views/datagrid/_table.html.erb
datagrid-0.7.0 app/views/datagrid/_table.html.erb
datagrid-0.6.4 app/views/datagrid/_table.html.erb