Sha256: 95c77da3c3506477cd4ffec48085f5c2b97b9d2e75d9aca60842f37081c27fee
Contents?: true
Size: 1.12 KB
Versions: 17
Compression:
Stored size: 1.12 KB
Contents
<% return unless ([:cols, :cols_data, :rows, :rows_data] - component[:attributes].keys).empty? columns = component[:attributes][:cols].map { |colUid| colData = component[:attributes][:cols_data][colUid.to_sym] || {} { uid: colUid, searchable_text: colData[:searchable_text] } } rows = component[:attributes][:rows].map { |rowUid| rowData = component[:attributes][:rows_data][rowUid.to_sym] || {} { uid: rowUid, data: rowData } } %> <div id="component-<%= component[:id] %>" class="<%= promethee_class_for(component) %>"> <div class="table-responsive"> <table class="table"> <thead> <tr> <% columns.each do |col| %> <th><%= col[:searchable_text] %></th> <% end %> </tr> </thead> <tbody> <% rows.each do |row| %> <tr> <% columns.each do |col| %> <% cell = row[:data][col[:uid].to_sym] next if cell.nil? %> <td><%= cell[:searchable_text] %></td> <% end %> </tr> <% end %> </tbody> </table> </div> </div>
Version data entries
17 entries across 17 versions & 1 rubygems