From 476bdfa6506e0b511cf76d34cf79d26c9f43b693 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Wed, 23 Jan 2019 20:05:08 +0000 Subject: [PATCH] Removed back to tournament button now that there is a navbar --- app/views/tournaments/delegate.html.erb | 6 ------ app/views/tournaments/edit.html.erb | 2 -- app/views/tournaments/error.html.erb | 2 -- app/views/tournaments/generate_matches.html.erb | 2 -- app/views/tournaments/matches.html.erb | 4 ---- app/views/tournaments/school_delegate.html.erb | 6 ------ app/views/tournaments/show.html.erb | 1 - app/views/tournaments/team_scores.html.erb | 4 ---- app/views/tournaments/teampointadjust.html.erb | 8 +------- app/views/tournaments/up_matches.html.erb | 1 - app/views/tournaments/weigh_in.html.erb | 4 +--- app/views/tournaments/weigh_in_weight.html.erb | 7 +------ 12 files changed, 3 insertions(+), 44 deletions(-) diff --git a/app/views/tournaments/delegate.html.erb b/app/views/tournaments/delegate.html.erb index 9308740..2685c7e 100644 --- a/app/views/tournaments/delegate.html.erb +++ b/app/views/tournaments/delegate.html.erb @@ -1,9 +1,3 @@ -<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %> -
-
- - - <% if @users %>

Search results

<%= form_tag(tournament_delegate_path, :method => "get", id: "search-form") do %> <%= text_field_tag :search, params[:search], placeholder: "Search users" %> diff --git a/app/views/tournaments/edit.html.erb b/app/views/tournaments/edit.html.erb index 40be8f3..32807e9 100644 --- a/app/views/tournaments/edit.html.erb +++ b/app/views/tournaments/edit.html.erb @@ -1,5 +1,3 @@ -<%= link_to 'Back', tournaments_path, :class=>"btn btn-default" %> -

Editing tournament

<%= render 'form' %> diff --git a/app/views/tournaments/error.html.erb b/app/views/tournaments/error.html.erb index fde7497..e18aeb1 100644 --- a/app/views/tournaments/error.html.erb +++ b/app/views/tournaments/error.html.erb @@ -1,3 +1 @@ -<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %> -

<%= @tournament.match_generation_error %> \ No newline at end of file diff --git a/app/views/tournaments/generate_matches.html.erb b/app/views/tournaments/generate_matches.html.erb index b5187ac..af4462f 100644 --- a/app/views/tournaments/generate_matches.html.erb +++ b/app/views/tournaments/generate_matches.html.erb @@ -1,3 +1 @@ -<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %> -

Matches are being generated. This can take anywhere from 1-5 minutes to finish. It is recommended to delete all delegated school permissions to prevent lineup changes after the tournament has started. \ No newline at end of file diff --git a/app/views/tournaments/matches.html.erb b/app/views/tournaments/matches.html.erb index 241f1d2..42f54e7 100644 --- a/app/views/tournaments/matches.html.erb +++ b/app/views/tournaments/matches.html.erb @@ -1,9 +1,6 @@

All <%= @tournament.name %> matches

-
-
-<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>
-
diff --git a/app/views/tournaments/school_delegate.html.erb b/app/views/tournaments/school_delegate.html.erb index 215f9a5..22f92ae 100644 --- a/app/views/tournaments/school_delegate.html.erb +++ b/app/views/tournaments/school_delegate.html.erb @@ -1,9 +1,3 @@ -<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %> -
-
- - - <% if @users %>

Search results

<%= form_tag(school_delegate_path, :method => "get", id: "search-form") do %> <%= text_field_tag :search, params[:search], placeholder: "Search users" %> diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb index 9b29697..b0c2352 100644 --- a/app/views/tournaments/show.html.erb +++ b/app/views/tournaments/show.html.erb @@ -1,4 +1,3 @@ -<%= link_to 'Back to browse tournaments', '/tournaments', :class=>"btn btn-default" %> <% if can? :manage, @tournament %> | <%= link_to "Edit #{@tournament.name}", edit_tournament_path(@tournament), :class=>"btn btn-primary" %> <% end %> diff --git a/app/views/tournaments/team_scores.html.erb b/app/views/tournaments/team_scores.html.erb index c9cef0e..3c009ff 100644 --- a/app/views/tournaments/team_scores.html.erb +++ b/app/views/tournaments/team_scores.html.erb @@ -1,9 +1,5 @@ <% cache ["#{@tournament.id}_team_scores", @tournament] do %> - <%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" , :class=>"btn btn-default"%> -
-
-

Team Scores

diff --git a/app/views/tournaments/teampointadjust.html.erb b/app/views/tournaments/teampointadjust.html.erb index 6a467a9..0a0978b 100644 --- a/app/views/tournaments/teampointadjust.html.erb +++ b/app/views/tournaments/teampointadjust.html.erb @@ -1,10 +1,4 @@ -<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %> -
-
- - - -

New Point Adjustment

+

New Point Adjustment



diff --git a/app/views/tournaments/up_matches.html.erb b/app/views/tournaments/up_matches.html.erb index 6ef141e..da91c17 100644 --- a/app/views/tournaments/up_matches.html.erb +++ b/app/views/tournaments/up_matches.html.erb @@ -1,5 +1,4 @@ <% cache ["#{@tournament.id}_up_matches", @tournament] do %> - <%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default"%>