Sha256: 3ab51173932af563e70ad130df21fa20ff29b1583f3aa6ab8159e10083b688b1

Contents?: true

Size: 581 Bytes

Versions: 42

Compression:

Stored size: 581 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

42 entries across 42 versions & 5 rubygems

Version Path
yard-gherkin-turnip-1.0.2 lib/templates/default/feature/html/table.erb
yard-gherkin-turnip-1.0.1 lib/templates/default/feature/html/table.erb
yard-gherkin-turnip-1.0.0 lib/templates/default/feature/html/table.erb
yard-nrser-cucumber-0.1.3 lib/templates/default/feature/html/table.erb
yard-nrser-cucumber-0.1.2 lib/templates/default/feature/html/table.erb
yard-nrser-cucumber-0.1.1 lib/templates/default/feature/html/table.erb
yard-nrser-cucumber-0.1.0 lib/templates/default/feature/html/table.erb
yard-cucumber-4.0.0 lib/templates/default/feature/html/table.erb
yard-cucumber-3.1.0 lib/templates/default/feature/html/table.erb
yard-cucumber-3.0.0 lib/templates/default/feature/html/table.erb
yard-cucumber2-2.3.4 lib/templates/default/feature/html/table.erb
yard-cucumber2-2.3.3 lib/templates/default/feature/html/table.erb
yard-cucumber-2.3.2 lib/templates/default/feature/html/table.erb
yard-cucumber-2.3.1 lib/templates/default/feature/html/table.erb
yard-cucumber-2.3.0 lib/templates/default/feature/html/table.erb
yard-cucumber-2.2.3 lib/templates/default/feature/html/table.erb
yard-cucumber-2.2.2 lib/templates/default/feature/html/table.erb
yard-cucumber-2.2.1 lib/templates/default/feature/html/table.erb
yard-cucumber-2.2.0 lib/templates/default/feature/html/table.erb
yard-cucumber-2.1.7 lib/templates/default/feature/html/table.erb