diff options
author | Ben Harris <ben@tilde.team> | 2022-01-15 14:08:29 -0500 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2022-01-15 14:08:29 -0500 |
commit | c5b9fe77a8a0e1c2e6a051b700c5a5d4b98ff6fb (patch) | |
tree | 8848d77d25ff12b81b3269f370b99cc44c3fe1f7 /app/views/pages | |
parent | 1d9a622303d7ef6c2f1db99d759554c268767cc4 (diff) |
add randomizer
Diffstat (limited to 'app/views/pages')
-rw-r--r-- | app/views/pages/index.html.erb | 2 | ||||
-rw-r--r-- | app/views/pages/randomize.html.erb | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/app/views/pages/index.html.erb b/app/views/pages/index.html.erb new file mode 100644 index 0000000..809ea04 --- /dev/null +++ b/app/views/pages/index.html.erb @@ -0,0 +1,2 @@ +<h1>Knockout</h1> +<p>To start the tournament, add players and make sure that the pins are up to date. Then hit randomize to automatically pick teams!</p> 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 %> |