Sha256: 2811f4971de33e7d4a0a53a0928f85ad53c68c700e5531da61c13a5af8038818
Contents?: true
Size: 930 Bytes
Versions: 2
Compression:
Stored size: 930 Bytes
Contents
<% cells = component[:children] rows = component.dig(:attributes, :structure, :value).map { |row| row.map { |cellUid| { uid: cellUid, text: cells.find { |cell| cell[:id] == cellUid }.dig(:attributes, :text, :value) } } } headerRow = rows.shift %> <div class="<%= promethee_class_for(component) %>" id="<%= promethee_id_for component %>"> <% unless headerRow.nil? %> <div class="table-responsive"> <table class="table"> <thead> <tr> <% headerRow.each do |cell| %> <th><%= cell[:text] %></th> <% end %> </tr> </thead> <tbody> <% rows.each do |row| %> <tr> <% row.each do |cell| %> <td><%= cell[:text] %></td> <% end %> </tr> <% end %> </tbody> </table> </div> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
promethee-4.1.11 | app/views/promethee/components/table/_show.html.erb |
promethee-4.1.10 | app/views/promethee/components/table/_show.html.erb |