Sha256: 6d53475a73027042e2f170413fbcfdd905409bfd197ac86799dc037285714db2

Contents?: true

Size: 624 Bytes

Versions: 4

Compression:

Stored size: 624 Bytes

Contents

<tbody>
  <% DaruLite::IRuby::Helpers.tuples_with_rowspans(@index).first(threshold).zip(to_a).each do |tuple, value| %>
    <tr>
      <% tuple.each do |idx, span| %>
        <th rowspan="<%= span %>"><%= idx %></th>
      <% end %>
      <td><%= value %></td>
    </tr>
  <% end %>

  <% if size > threshold %>
    <% last_index = @index.to_a.last %>
    <tr>
      <% last_index.size.times do %>
        <th>...</th>
      <% end %>
      <td>...</td>
    </tr>
    <tr>
      <% last_index.each do |idx| %>
        <th><%= idx %></td>
      <% end %>
      <td><%= self[last_index] %></td>
    </tr>
  <% end %>
</tbody>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
daru_lite-0.1.3 lib/daru_lite/iruby/templates/vector_mi_tbody.html.erb
daru_lite-0.1.2 lib/daru_lite/iruby/templates/vector_mi_tbody.html.erb
daru_lite-0.1.1 lib/daru_lite/iruby/templates/vector_mi_tbody.html.erb
daru_lite-0.1 lib/daru_lite/iruby/templates/vector_mi_tbody.html.erb