fix double-display on randomize.html.erb
This commit is contained in:
parent
9150b57507
commit
8324052997
|
@ -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>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in New Issue