about summary refs log tree commit diff
path: root/app/views/pages/randomize.html.erb
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2022-02-01 09:51:25 -0500
committerBen Harris <ben@tilde.team>2022-02-01 09:51:25 -0500
commit8324052997b01793c47b492afccee8100c1fc87e (patch)
tree81aec14cba2acf9f37b37ca6a74d7ff83c8096f4 /app/views/pages/randomize.html.erb
parent9150b575075db8a2de75ab476c9c7801d2352242 (diff)
fix double-display on randomize.html.erb
Diffstat (limited to 'app/views/pages/randomize.html.erb')
-rw-r--r--app/views/pages/randomize.html.erb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/pages/randomize.html.erb b/app/views/pages/randomize.html.erb
index 1505ab5..a097d5d 100644
--- a/app/views/pages/randomize.html.erb
+++ b/app/views/pages/randomize.html.erb
@@ -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 %>