Sha256: 1fcec01ce99afae65145c70d78763762bcca521ff840df7efe8dafde1186ca6d
Contents?: true
Size: 737 Bytes
Versions: 2
Compression:
Stored size: 737 Bytes
Contents
<% if report.records.size > 0 %> <table class="<%= QueryReport.config.record_table_class %>" cellpadding="0" cellspacing="0"> <thead> <% report.columns.each do |column| %> <th><%= column.sortable? ? sort_link(report.search, column.name, {}, remote: @remote) : column.humanize %></th> <% end %> </thead> <tbody> <% report.records.each do |record| %> <tr> <% report.columns.each do |column| %> <td><%= record[column.humanize] %></td> <% end %> </tr> <% end %> <%= render :partial => "query_report/record_footer", locals: {report: report} %> </tbody> </table> <% else %> <p>No record found</p> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
query_report-1.0.7 | app/views/query_report/_records.html.erb |
query_report-1.0.6 | app/views/query_report/_records.html.erb |