Sha256: 9aa1d7e17e4146c9f30c5b091ac976d214aa26c5b6a39a374afedb107f3f1930

Contents?: true

Size: 526 Bytes

Versions: 8

Compression:

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

8 entries across 8 versions & 1 rubygems

Version Path
cucumber-in-the-yard-1.6.1 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.6.0 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.5.4 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.5.3 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.5.2 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.5.1 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.5 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.4 lib/templates/default/feature/html/table.erb