Sha256: 05268f3b756e448604d4455a21e6be481a063788dd27d4a9aa018836639e249a
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 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 round.event.full_title, short_event_path( round.event ) %> </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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sportdb-admin-0.1.1 | app/views/sport_db_admin/rounds/index.html.erb |
sportdb-admin-0.1.0 | app/views/sport_db_admin/rounds/index.html.erb |