Last active
December 23, 2015 15:39
-
-
Save steve0hh/6656988 to your computer and use it in GitHub Desktop.
table snippet that displays data in tables horizontally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class="table table-bordered"> | |
<thead> | |
<tr> | |
<th colspan="6"><%= @itinerary.name %></th> | |
</tr> | |
</thead> | |
<tbody> | |
<% @itinerary.timings.in_groups_of(6) do |timings_row| %> | |
<tr> | |
<% timings_row.each do |timing| %> | |
<td> | |
<% unless timing.nil? %> | |
<%= timing.start_time_text %> | |
<% end %> | |
</td> | |
<% end %> | |
</tr> | |
<% end %> | |
</tbody> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment