Sha256: 891591b53dfc6a25ab6ada30b73aba585a935e5489a0cf7936642531c39debf0
Contents?: true
Size: 996 Bytes
Versions: 12
Compression:
Stored size: 996 Bytes
Contents
<div id="snaptable"> <%= render 'snaptable/search_field' if presenter.options[:search] == true %> <%= render 'snaptable/buttons' unless presenter.options[:buttons] == false %> <% if buttons %> <div class="table_buttons"> <%= render buttons if buttons %> </div> <% end %> <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><%= truncate((strip_tags value), length: 40) %></td> <% end %> </tr> <% end %> <% else %> <tr><td class="none" colspan="<%= presenter.column_names.count %>">Il n'y a aucun élément à afficher.</td></tr> <% end %> </tbody> </table> <%= will_paginate presenter.records %> </div>
Version data entries
12 entries across 12 versions & 1 rubygems