From 9ef8b7a24bf34fd22cbae69a301f1c10d5db114d Mon Sep 17 00:00:00 2001 From: Prommah Date: Wed, 4 Nov 2015 14:17:57 +0000 Subject: [PATCH] Remove disused & hidden match score page --- app/controllers/matches_controller.rb | 6 ----- app/views/matches/score.html.erb | 37 --------------------------- 2 files changed, 43 deletions(-) mode change 100644 => 100755 app/controllers/matches_controller.rb delete mode 100644 app/views/matches/score.html.erb diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb old mode 100644 new mode 100755 index 5066916..8e0ea0c --- a/app/controllers/matches_controller.rb +++ b/app/controllers/matches_controller.rb @@ -24,12 +24,6 @@ class MatchesController < ApplicationController def extra end - def score - raise AccessError unless @match.can_update? cuser, [:matchers_attributes] - @contester = @match.contester1.team.is_leader?(cuser) ? @match.contester1 : @match.contester2 - @n = 0 - end - def ref raise AccessError unless @match.can_update? cuser, [:report] @n = 0 diff --git a/app/views/matches/score.html.erb b/app/views/matches/score.html.erb deleted file mode 100644 index ff1d9a0..0000000 --- a/app/views/matches/score.html.erb +++ /dev/null @@ -1,37 +0,0 @@ -

- <%= namelink @match.contester1.team %> vs <%= namelink @match.contester2.team %> -

- -
-

- Lineup -

- <%= form_for @match do |f| %> - <%= render :partial => "lineup", :locals => {:contester => @contester} %> -

- <%= f.submit "Save" %> -

- <% end %> -
- -<% if @match.can_update? cuser, [:score1, :score2] %> -
- <%= form_for(@match) do |f| %> -

- Scoring -

- - <%= f.error_messages %> -

- <%= f.label :score1, "Score" %>
- <%= f.text_field :score1, :size => 1 %> - <%= f.text_field :score2, :size => 1 %> -

-

- <%= f.submit 'Submit' %> -

- <% end %> -
-<% end %> - -<%= link_to "Back", @match %>