Sha256: cf220b8ca75ece5dd3608b88880b56428276247bd24afb01c690b5673fd52963

Contents?: true

Size: 820 Bytes

Versions: 26

Compression:

Stored size: 820 Bytes

Contents

<div id="component-<%= component[:id] %>" class="<%= promethee_class_for(component) %>">
  <div class="table-responsive">
    <table class="table">
      <thead>
        <tr>
          <% component[:attributes][:head].each do |th| %>
            <th><%= th[:searchable_text] if th.has_key? :searchable_text %></th>
          <% end %>
        </tr>
      </thead>
      <tbody>
        <% component[:attributes][:body].each do |tr| %>
          <% if tr.select { |td| td[:searchable_text]&.present? }.count == 0 %>
            <tr></tr>
          <% else %>
            <tr>
              <% tr.each do |td| %>
                <td><%= td[:searchable_text] if td.has_key? :searchable_text %></td>
              <% end %>
            </tr>
          <% end %>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
promethee-1.11.29 app/views/promethee/components/table/_show.html.erb
promethee-1.11.28 app/views/promethee/components/table/_show.html.erb
promethee-1.11.27 app/views/promethee/components/table/_show.html.erb
promethee-1.11.26 app/views/promethee/components/table/_show.html.erb
promethee-1.11.25 app/views/promethee/components/table/_show.html.erb
promethee-1.11.24 app/views/promethee/components/table/_show.html.erb
promethee-1.11.23 app/views/promethee/components/table/_show.html.erb
promethee-1.11.22 app/views/promethee/components/table/_show.html.erb
promethee-1.11.21 app/views/promethee/components/table/_show.html.erb
promethee-1.11.20 app/views/promethee/components/table/_show.html.erb
promethee-1.11.19 app/views/promethee/components/table/_show.html.erb
promethee-1.11.18 app/views/promethee/components/table/_show.html.erb
promethee-1.11.17 app/views/promethee/components/table/_show.html.erb
promethee-1.11.16 app/views/promethee/components/table/_show.html.erb
promethee-1.11.15 app/views/promethee/components/table/_show.html.erb
promethee-1.11.14 app/views/promethee/components/table/_show.html.erb
promethee-1.11.13 app/views/promethee/components/table/_show.html.erb
promethee-1.11.12 app/views/promethee/components/table/_show.html.erb
promethee-1.11.11 app/views/promethee/components/table/_show.html.erb
promethee-1.11.10 app/views/promethee/components/table/_show.html.erb