Update _mini_leaderboard.html.erb (#341)

This commit is contained in:
ShyMike
2025-06-19 20:43:55 +01:00
committed by GitHub
parent cdbad43dba
commit 80e4ae44d8

View File

@@ -26,7 +26,7 @@
<div class="mini-leaderboard">
<p class="super">
<% if leaderboard.respond_to?(:scope_name) %>
<strong>Showing others in <%= link_to "your timezone", my_settings_path(anchor: "user_timezone") %>
<strong>Showing others in <%= link_to "your timezone", my_settings_path(anchor: "user_timezone"), data: { turbo: false } %></strong>
<% else %>
This leaderboard is in <%= Leaderboard::GLOBAL_TIMEZONE %>.
<% if current_user && timezone_difference_in_seconds(Leaderboard::GLOBAL_TIMEZONE, current_user.timezone) != 0 %>