Sha256: 875c290f56f36ad2ac4f4fbffa609ab14c5b2581add180fe7ff4018751e9f807
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
<% row_classes = table.row_classes if !defined?(row_classes) || row_classes.nil? table_class = table.options[:table_class].to_s if !defined?(table_class) || table_class.nil? %> <%= content_tag(:h4, table_name) %> <div class='list_container'> <%= content_tag(:table, :class => "table table-condensed #{table_class}") do %> <% unless @report[:table_header] == false %> <%= content_tag(:thead, content_tag(:tr, table.to_a.shift.map { |h| html_cell(h, :th)}.join.html_safe ) ) %> <% end %> <tbody> <% table.to_a.each_with_index do |row, i| style = nil if MetaReports::Base.inline_css && row_classes[i] color = nil row_classes[i].split(/\s+/).each do |token| if color = meta_report_color(token) break end end style = "background-color: ##{color}" #TODO: handle bold, alignment end %> <%= content_tag(:tr, class: row_classes[i], style: style) do row.each do |cell| %><%= html_cell(cell) %><% end end %> <% end %> </tbody> <% end %> </div>
Version data entries
2 entries across 1 versions & 1 rubygems