diff --git a/app/views/layouts/_rsidebar.html.erb b/app/views/layouts/_rsidebar.html.erb index f67ed9a..3915c83 100644 --- a/app/views/layouts/_rsidebar.html.erb +++ b/app/views/layouts/_rsidebar.html.erb @@ -1,6 +1,10 @@ <% if Rails.env.production? %>
- + <% if !user_signed_in? %> + <% if !current_page?(root_url) and !current_page?(new_user_session_url) and !params[:print] %> + + <% end %> + <% end %>
<% end %>
 
diff --git a/config/routes.rb b/config/routes.rb index 34be217..78c826b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -22,7 +22,6 @@ Wrestling::Application.routes.draw do # You can have the root of your site routed with "root" root 'static_pages#home' - get 'admin/index' get 'static_pages/control_match' get 'static_pages/not_allowed' get 'static_pages/about' @@ -34,10 +33,10 @@ Wrestling::Application.routes.draw do get 'tournaments/:id/create_custom_weights' => 'tournaments#create_custom_weights' get 'tournaments/:id/all_brackets' => 'tournaments#all_brackets' get 'tournaments/:id/brackets' => 'tournaments#brackets' - get 'tournaments/:id/brackets/:weight' => 'tournaments#bracket' + get 'tournaments/:id/brackets/:weight' => 'tournaments#bracket', :as => :weight_bracket get 'tournaments/:id/generate_matches' => 'tournaments#generate_matches' get 'tournaments/:id/team_scores' => 'tournaments#team_scores' - get 'tournaments/:id/up_matches' => 'tournaments#up_matches' + get 'tournaments/:id/up_matches' => 'tournaments#up_matches', :as => :up_matches get 'tournaments/:id/no_matches' => 'tournaments#no_matches' get 'tournaments/:id/matches' => 'tournaments#matches' get 'tournaments/:id/delegate' => 'tournaments#delegate', :as => :tournament_delegate