Sha256: aa4d59b19e3de5f4ca603c9852a5fc92bf8fb0f4572876e0783ff4d8f89907fa

Contents?: true

Size: 583 Bytes

Versions: 5

Compression:

Stored size: 583 Bytes

Contents

<div class="multiline">
  <table style="">
    <thead>
      <tr>
        <% @step.table.first.each_with_index do |column, column_index| %>
          <th class="<%= (column_index + 1) % 2 == 0 ? 'even' : 'odd' %>"><%= h(column.strip) %></th>
        <% end %>
      </tr>
    </thead>

    <% @step.table[1..-1].each_with_index do |row, row_index| %>
      <tr class="<%= (row_index + 1) % 2 == 0 ? 'even' : 'odd' %>">
        <% row.each_with_index do |column, column_index| %>
          <td><%= h(column.strip) %></td>
        <% end %>
      </tr>
    <% end %>
  </table>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yard-lucid-0.5.0 lib/templates/default/feature/html/table.erb
yard-lucid-0.4.0 lib/templates/default/feature/html/table.erb
yard-lucid-0.3.0 lib/templates/default/feature/html/table.erb
yard-lucid-0.2.0 lib/templates/default/feature/html/table.erb
yard-lucid-0.1.0 lib/templates/default/feature/html/table.erb