Sha256: 66134955fd2c3f0f403f794f2946b761fb993ac7e13d76e9e3eee92206588277
Contents?: true
Size: 984 Bytes
Versions: 2
Compression:
Stored size: 984 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 %>"><%= t("table.nothing") %></td></tr> <% end %> </tbody> </table> <%= will_paginate presenter.records %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
snaptable-0.8.6 | app/views/snaptable/base.html.erb |
snaptable-0.8.5 | app/views/snaptable/base.html.erb |