Sha256: 40d7f02c5e83837036c8930a7929d7a65fb78f342787ff87f6572b49b3065a8f
Contents?: true
Size: 1.01 KB
Versions: 42
Compression:
Stored size: 1.01 KB
Contents
<table class="rails_db_data_table <%= rails_db_table_style(:table, style) %>"> <thead class="<%= rails_db_table_style(:thead, style) %>"> <tr class="<%= rails_db_table_style(:tr, style) %>"> <% sql_query.data.columns.each do |column| %> <th class="<%= rails_db_table_style(:th, style) %>"><%= column %></th> <% end %> </tr> </thead> <tbody class="<%= rails_db_table_style(:tbody, style) %>"> <% sql_query.data.rows.each do |row| %> <tr class="<%= rails_db_table_style(:tr, style) %>"> <% row.each do |item| %> <td class="<%= rails_db_table_style(:td, style) %>"><%= item %></td> <% end %> </tr> <% end %> </tbody> <% if footer %> <tfoot class="<%= rails_db_table_style(:tfoot, style) %>"> <tr class="<%= rails_db_table_style(:tr, style) %>"> <% sql_query.data.columns.each do |column| %> <th class="<%= rails_db_table_style(:th, style) %>"><%= column %></th> <% end %> </tr> </tfoot> <% end %> </table>
Version data entries
42 entries across 42 versions & 2 rubygems