Sha256: a0d0a9cdf4bafc8a23710232742f92fc66aca10238b5f1f71585afaad820d40b
Contents?: true
Size: 1.37 KB
Versions: 3
Compression:
Stored size: 1.37 KB
Contents
<h3><%= Round.count %> Rounds</h3> <table class='play'> <% last_start_at = Time.local( 1999, 1, 1 ) @rounds.each do |round| %> <% unless last_start_at.year == round.start_at.year && last_start_at.month == round.start_at.month && last_start_at.day == round.start_at.day %> <% unless last_start_at.year == round.start_at.year %> <tr class='round-year'> <td colspan='2'></td> <td colspan='9'><%= round.start_at.strftime('%Y') %></td> </tr> <% end %> <!-- todo: find a method for week number; do NOT use strftime; there must be something easier --> <% unless last_start_at.strftime('%V') == round.start_at.strftime('%V') %> <tr class='round-week'> <td colspan='2'></td> <td colspan='9'>Week <%= round.start_at.strftime('%V') %></td> </tr> <% end %> <% end %> <tr> <td class='round-key'><%= round.event.key %> - <%= round.pos %></td> <td> <%= round.start_at.strftime( '%b/%d %a') %> </td> <td> <%= link_to_event( round.event, full_title: true ) %> </td> <td> <%= round.title %> <%= "(#{round.title2})" if round.title2.present? %> </td> <td class='round-debug'> <%= round.start_at %> </td> </tr> <% last_start_at = round.start_at end %><!-- rounds.each --> </table>
Version data entries
3 entries across 3 versions & 1 rubygems