Skip to content

Commit

Permalink
Do not show clicks count on games history
Browse files Browse the repository at this point in the history
The number of games has exploded faster than I expected which is a performance issue on the history page. A quick fix is to remove click counts from it. Since I'm on vacation and doing this on a tablet through github Web editor,  this will have to do for now.
  • Loading branch information
radanskoric authored Aug 3, 2024
1 parent 6159d46 commit 9dad3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/games/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ul>
<% @games.find_each do |game| %>
<li class="<%= game.win? ? 'text-green-600' : 'text-red-600' %>">
<%= link_to "Game ##{game.id} (#{game.clicks.size} clicks): #{game.win? ? 'Humanity' : 'Mines'} won", game_path(game) %>
<%= link_to "Game ##{game.id}: #{game.win? ? 'Humanity' : 'Mines'} won", game_path(game) %>
</li>
<% end %>
</ul>
Expand Down

0 comments on commit 9dad3d3

Please # to comment.