about summary refs log tree commit diff
path: root/app/views/pages/randomize.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/pages/randomize.html.erb')
-rw-r--r--app/views/pages/randomize.html.erb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/pages/randomize.html.erb b/app/views/pages/randomize.html.erb
new file mode 100644
index 0000000..1505ab5
--- /dev/null
+++ b/app/views/pages/randomize.html.erb
@@ -0,0 +1,10 @@
+<h1>Randomize</h1>
+
+<% @groups.each.with_index do |slice, i| %>
+  <h2><%= @machines[i].name %> <small><%= @machines[i].edition %></small></h2>
+  <ol>
+    <% slice.each do |player| %>
+      <li><%= link_to player.name, player_path(player) %></li>
+    <% end %>
+  </ol>
+<% end %>