Sha256: de900947c5aa6c421257c246bfd1ed3dab10cb111bb0b6ffa0c2f124b6a03296

Contents?: true

Size: 619 Bytes

Versions: 5

Compression:

Stored size: 619 Bytes

Contents

<tbody>
  <% Daru::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

5 entries across 5 versions & 1 rubygems

Version Path
daru-0.3 lib/daru/iruby/templates/vector_mi_tbody.html.erb
daru-0.2.2 lib/daru/iruby/templates/vector_mi_tbody.html.erb
daru-0.2.1 lib/daru/iruby/templates/vector_mi_tbody.html.erb
daru-0.2.0 lib/daru/iruby/templates/vector_mi_tbody.html.erb
daru-0.1.6 lib/daru/iruby/templates/vector_mi_tbody.html.erb