diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
index b89d609..0f443b6 100644
--- a/app/controllers/tournaments_controller.rb
+++ b/app/controllers/tournaments_controller.rb
@@ -13,7 +13,7 @@ class TournamentsController < ApplicationController
@wrestler = Wrestler.find(params[:wrestler][:originalId])
respond_to do |format|
if SwapWrestlers.new.swapWrestlers(params[:wrestler][:originalId], params[:wrestler][:swapId])
- format.html { redirect_to @wrestler, notice: 'Wrestler was successfully swaped.' }
+ format.html { redirect_to "/tournaments/#{@wrestler.tournament.id}/brackets/#{@wrestler.weight.id}", notice: 'Wrestler was successfully swaped.' }
format.json { render action: 'show', status: :created, location: @wrestler }
end
end
diff --git a/app/views/tournaments/bracket.html.erb b/app/views/tournaments/bracket.html.erb
index 3b476f2..04094b0 100644
--- a/app/views/tournaments/bracket.html.erb
+++ b/app/views/tournaments/bracket.html.erb
@@ -27,4 +27,21 @@
<% if @weight.wrestlers.size <= 6 && @weight.allPoolMatchesFinished(1) %>
<%= render 'onePoolResults' %>
<% end %>
+<% end %>
+
+<% if can? :manage, @tournament %>
+
+