Sha256: 4187e65a640a2ea1c8f1ab7e4bded9714209c81570dda004b52ff1a3436ad9e6
Contents?: true
Size: 1.09 KB
Versions: 105
Compression:
Stored size: 1.09 KB
Contents
<% caption ||= nil head ||= [] rows ||= [] first_cell_is_header ||=false caption_classes ||= nil sortable ||=false %> <%= GovukPublishingComponents::AppHelpers::TableHelper.helper(self, caption, { sortable: sortable, caption_classes: caption_classes }) do |t| %> <% if head.any? %> <%= t.head do %> <% head.each_with_index do |item, cellindex| %> <%= t.header item[:text], { format: item[:format], href: item[:href], sort_direction: item[:sort_direction] } %> <% end %> <% end %> <% end %> <%= t.body do %> <% rows.each_with_index do |row, rowindex| %> <%= t.row do %> <% row.each_with_index do |cell, cellindex| %> <% if cellindex == 0 && first_cell_is_header %> <%= t.header cell[:text], { scope: "row", format: cell[:format] } %> <% else %> <%= t.cell cell[:text], { format: cell[:format] } %> <% end %> <% end %> <% end %> <% end %> <% end %> <% end %>
Version data entries
105 entries across 105 versions & 1 rubygems