Sha256: eabfe1149ba0458a8a953850fda1b010b7d9c55467e3653cc3c1379117af580d
Contents?: true
Size: 867 Bytes
Versions: 2
Compression:
Stored size: 867 Bytes
Contents
<div id="admin_table"> <%= 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="<%= presenter.url(record) %>"> <% 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
snaptable-0.3.0 | app/views/base.html.erb |
snaptable-0.2.1 | app/views/base.html.erb |