fix double-display on randomize.html.erb

This commit is contained in:
Ben Harris 2022-02-01 09:51:25 -05:00
parent 9150b57507
commit 8324052997
2 changed files with 9 additions and 2 deletions

View File

@ -9,6 +9,9 @@
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>
<%= favicon_link_tag asset_path('favicon.png') %>
<% if content_for? :extra_head %>
<%= yield :extra_head %>
<% end %>
</head>
<body>

View File

@ -1,10 +1,14 @@
<% content_for :extra_head do %>
<meta name="turbo-cache-control" content="no-preview">
<% end %>
<h1>Randomize</h1>
<% @groups.each.with_index do |slice, i| %>
<h2><%= @machines[i].name %> <small><%= @machines[i].edition %></small></h2>
<h2 id="<%= dom_id @machines[i] %>"><%= @machines[i].name %> <small><%= @machines[i].edition %></small></h2>
<ol>
<% slice.each do |player| %>
<li><%= link_to player.name, player_path(player) %></li>
<li id="<%= dom_id player %>"><%= link_to player.name, player_path(player) %></li>
<% end %>
</ol>
<% end %>