<%#
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 grid.rows.empty? %>
    <tr><td class="noresults" colspan="100%"><%= I18n.t 'datagrid.no_results', :default => 'No results found.' %></td></tr>
    <% else %>
    <%= datagrid_rows(grid, assets, options) %>
    <% end %>
  </tbody>
<% end %>

<%#
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 grid.rows.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 %>

Use &mdash;&mdash; as a default indication that no records were found.
Use &mdash;&mdash; as a default indication that no records were found.
