Skip to content

Commit

Permalink
Revert "Make match open new tab on ctrl + click (#370)"
Browse files Browse the repository at this point in the history
This reverts commit c78661e.
  • Loading branch information
L-e-x-o-n authored Aug 1, 2024
1 parent 053fbbf commit a1b0297
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/teiserver_web/live/battles/match/ratings.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@
log.value["uncertainty_change"] < 0 -> {"text-secondary column-delta", "arrow-down"}
true -> {"text-secondary column-delta", "pause"}
end %>
<tr>
<tr phx-click={"[[\"navigate\",{\"href\":\"/battle/#{log.match_id}\",\"replace\":false}]]"}>
<%= if log.match do %>
<td>
<%= log.match.map %>
<%= live_redirect("#{log.match.map}", to: ~p"/battle/#{log.match_id}") %>
</td>
<td><%= log.match.team_size * log.match.team_count %></td>
<% else %>
Expand Down Expand Up @@ -127,7 +127,11 @@

<%= if log.match do %>
<td>
<.link navigate={~p"/battle/#{log.match_id}"} class="stretched-link"></.link>
<div class="visually-hidden">
<.link navigate={~p"/battle/#{log.match_id}"}>
Show
</.link>
</div>
</td>
<% else %>
<td>&nbsp;</td>
Expand Down

0 comments on commit a1b0297

Please sign in to comment.