<%# if entities.any? %>
    <div id="query_data">
      <table class="table <%= query.entity.name.pluralize.underscore %> table-striped">
        <thead>
        <tr>
          <%= table_header_tag_for(query.model) do |t|
            query.columns.each{|c| c.header(t)}
          end %>
          <th></th>
        </tr>
        </thead>
        <tbody>
        <%= tbody %>
        </tbody>
      </table>

      <%#= will_paginate entities %>
    </div>
<%# else %>
    <%#= render_no_data %>
<%# end %>