Sha256: cc2634d9be101f2bb8314543edfc2a47965b66240a5167d5430f0f0b3ee23915

Contents?: true

Size: 388 Bytes

Versions: 9

Compression:

Stored size: 388 Bytes

Contents

<tbody>
  <% @index.each_with_index.first(threshold).each do |index, pos| %>
    <tr>
      <td><%= index %></td>
      <td><%= self.at(pos) %></td>
    </tr>
  <% end %>

  <% if size > threshold %>
    <% last_index = @index.size-1 %>
    <tr><td>...</td><td>...</td></tr>
    <tr>
      <td><%= last_index %></td>
      <td><%= self.at last_index %></td>
    </tr>
  <% end %>
</tbody>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
daru_lite-0.1.3 lib/daru_lite/iruby/templates/vector_tbody.html.erb
daru_lite-0.1.2 lib/daru_lite/iruby/templates/vector_tbody.html.erb
daru_lite-0.1.1 lib/daru_lite/iruby/templates/vector_tbody.html.erb
daru_lite-0.1 lib/daru_lite/iruby/templates/vector_tbody.html.erb
daru-0.3 lib/daru/iruby/templates/vector_tbody.html.erb
daru-0.2.2 lib/daru/iruby/templates/vector_tbody.html.erb
daru-0.2.1 lib/daru/iruby/templates/vector_tbody.html.erb
daru-0.2.0 lib/daru/iruby/templates/vector_tbody.html.erb
daru-0.1.6 lib/daru/iruby/templates/vector_tbody.html.erb