Sha256: 74efb65f6b187c902b3121b2801d6efd3a06d302d454249d90ffa8f333e47f45
Contents?: true
Size: 870 Bytes
Versions: 3
Compression:
Stored size: 870 Bytes
Contents
<div id="snaptable"> <%= render 'search_field' if presenter.options[:search] == true %> <%= render 'buttons' unless presenter.options[:buttons] == false %> <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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
snaptable-0.4.2 | app/views/base.html.erb |
snaptable-0.4.1 | app/views/base.html.erb |
snaptable-0.4.0 | app/views/base.html.erb |