Sha256: 9b1a284a09b1738c39b16e34e52af6efd0b5b88e531da906c80ec0a0ccae6a73
Contents?: true
Size: 1.07 KB
Versions: 10
Compression:
Stored size: 1.07 KB
Contents
<div class="snaptable <%= presenter.table_name %>"> <%= render 'snaptable/search_field', presenter: presenter if presenter.options[:search] == true %> <div class="table_buttons"> <%= render presenter.instance_variable_get(:@buttons) unless presenter.options[:buttons] == false %> </div> <div class="table_container"> <table> <thead> <tr> <% presenter.column_names.each do |column| %> <th><%= presenter.sortable(column) %></th> <% end %> </tr> </thead> <tbody> <% if presenter.records.any? %> <% presenter.records.each do |record| %> <tr class="<%= cycle('odd', 'even') %>" data-url="<%= record.send(presenter.url) %>"> <% presenter.values(record).each do |value| %> <td><%= value %></td> <% end %> </tr> <% end %> <% else %> <tr><td class="none" colspan="<%= presenter.column_names.count %>"><%= t("table.nothing") %></td></tr> <% end %> </tbody> </table> </div> <%= will_paginate presenter.records, param_name: presenter.paginate_key, params: { table: presenter.table_name } %> </div>
Version data entries
10 entries across 10 versions & 1 rubygems