Skip to content

Commit

Permalink
Fix games history link
Browse files Browse the repository at this point in the history
  • Loading branch information
radanskoric committed Sep 9, 2024
1 parent bb25878 commit 59b9a35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/games/home.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
If we collectively solve it that is one point for <b>Humanity</b>.
If any one of us clicks on a mine, that is one point for <b>The Mines</b>.
<% if @first_public %>
We're now on the second round. The <b>first round</b> finished with a <b class="text-red-800">complete defeat of Humanity</b>. Read about it
We're now on the second round. The <b>first round</b> finished with a <%= link_to "complete defeat of Humanity", @first_public, class:"text-red-800 font-bold" %>. Read about it
<%= link_to "here", @first_public, class: "text-indigo-600" %>.
<% end %>
The new round features a fair start: games start with a starting area revealed.
Expand Down
2 changes: 1 addition & 1 deletion app/views/games/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h2 class="font-bold text-2xl m-4">Game #<%= @game.id %> (<%= @game.finished? ? "finished" : "playing" %>)</h2>

<% if @game.communal? %>
<%= link_to "Games history", games_path, class: "text-indigo-600 my-4" %>
<%= link_to "Games history", match_path(@game.match), class: "text-indigo-600 my-4" %>
<% else %>
<%= link_to "My games", my_games_path, class: "text-indigo-600 my-4" %>
<% end %>
Expand Down

0 comments on commit 59b9a35

Please # to comment.