From f73e9bfc4ebe8cb72ba801614df223c11328d11f Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Tue, 11 Nov 2025 20:55:34 -0500 Subject: [PATCH] Fix the reset bout board link --- app/controllers/tournaments_controller.rb | 2 +- app/views/layouts/_tournament-navbar.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index f0ee6b3..fef35b5 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -300,7 +300,7 @@ class TournamentsController < ApplicationController def reset_bout_board @tournament.reset_and_fill_bout_board - redirect_to tournament_path(@tournament), notice: "Successfully reset the bout board." + redirect_to tournament_path(@tournament), notice: "Successfully reset the bout board. Please have all mat table workers refresh their page." end def generate_school_keys diff --git a/app/views/layouts/_tournament-navbar.html.erb b/app/views/layouts/_tournament-navbar.html.erb index 282982e..d7f284d 100644 --- a/app/views/layouts/_tournament-navbar.html.erb +++ b/app/views/layouts/_tournament-navbar.html.erb @@ -43,7 +43,7 @@
  • <%= link_to "Deduct Team Points" , "/tournaments/#{@tournament.id}/teampointadjust" %>
  • <%= link_to "View All Mat Assignment Rules", tournament_mat_assignment_rules_path(@tournament) %>
  • <%= link_to 'Manage Backups', tournament_tournament_backups_path(@tournament) %>
  • -
  • <%= link_to "Reset Bout Board", reset_bout_board_tournament_path(@tournament), method: :post, data: { confirm: "Are you sure you want to reset the bout board?" } %>
  • +
  • <%= link_to "Reset Bout Board", reset_bout_board_tournament_path(@tournament), data: { turbo_method: :post, turbo_confirm: "Are you sure you want to reset the bout board?" } %>
  • <% if can? :destroy, @tournament %>
  • <%= link_to "Tournament Delegation" , "/tournaments/#{@tournament.id}/delegate" %>
  • <% end %> @@ -69,4 +69,4 @@ -<% end %> \ No newline at end of file +<% end %>