diff --git a/.tmux.sh.swp b/.tmux.sh.swp new file mode 100644 index 0000000..dd84016 Binary files /dev/null and b/.tmux.sh.swp differ diff --git a/app/views/mats/._match_edit_form.html.erb.swp b/app/views/mats/._match_edit_form.html.erb.swp new file mode 100644 index 0000000..a70785a Binary files /dev/null and b/app/views/mats/._match_edit_form.html.erb.swp differ diff --git a/app/views/mats/_match_edit_form.html.erb b/app/views/mats/_match_edit_form.html.erb index d5dd506..08dbcab 100644 --- a/app/views/mats/_match_edit_form.html.erb +++ b/app/views/mats/_match_edit_form.html.erb @@ -10,15 +10,15 @@ <% end %> -

Bout <%= @match.bout_number %>

+

Bout: <%= @match.bout_number %>

Round: <%= @match.round %>

Weight: <%= @match.weight_max %> lbs

- - @@ -94,7 +94,7 @@
<%= f.submit onclick: "return confirm('Is the name of the winner ' + document.getElementById('match_winner_id').options[document.getElementById('match_winner_id').selectedIndex].text + '?')", :class=>"btn btn-success" %> - +
<% end %> @@ -116,17 +116,17 @@ w1.stats=document.getElementById("match_w1_stat").value; w2.stats=document.getElementById("match_w2_stat").value; } - + function takedown(wrestler){ updateStats(wrestler,"T2") } - + function updateStats(wrestler,text){ updatejsvalues(); wrestler.stats = wrestler.stats + text + " "; updatehtmlvalues(); } - + //For Changing button colors function changeW1Color(color){ if (color.value == "red") { @@ -140,7 +140,7 @@ document.getElementById("w2-color").value = "red"; } } - + function changeW2Color(color){ if (color.value == "red") { w2Red(); @@ -153,15 +153,15 @@ document.getElementById("w1-color").value = "red"; } } - + function redColor(id){ document.getElementById(id).className = "btn btn-danger btn-sm"; } - + function greenColor(id){ document.getElementById(id).className = "btn btn-success btn-sm"; } - + function w1Red(){ redColor("w1-takedown"); redColor("w1-escape"); @@ -177,7 +177,7 @@ redColor("w1-stalling"); redColor("w1-caution"); } - + function w1Green(){ greenColor("w1-takedown"); greenColor("w1-escape"); @@ -193,7 +193,7 @@ greenColor("w1-stalling"); greenColor("w1-caution"); } - + function w2Red(){ redColor("w2-takedown"); redColor("w2-escape"); @@ -209,7 +209,7 @@ redColor("w2-stalling"); redColor("w2-caution"); } - + function w2Green(){ greenColor("w2-takedown"); greenColor("w2-escape"); diff --git a/app/views/tournaments/up_matches.html.erb b/app/views/tournaments/up_matches.html.erb index 70e3eec..1406d9b 100644 --- a/app/views/tournaments/up_matches.html.erb +++ b/app/views/tournaments/up_matches.html.erb @@ -24,15 +24,15 @@ - + <% @mats.each.map do |m| %> - - - - + + + + <% end %> @@ -49,7 +49,7 @@ - + <% if @matches.size > 0 %> <% @matches.each.map do |m| %> @@ -63,6 +63,6 @@ <% end %>
<%= @w1.name %> <%= @w1.name %> - <%= @w1.school.name %>
Last Match: <%= if @w1.lastMatch != nil then time_ago_in_words(@w1.lastMatch.updated_at) end%>
<%= @w2.name %> <%= @w2.name %> - <%= @w2.school.name %>
Last Match: <%= if @w2.lastMatch != nil then time_ago_in_words(@w2.lastMatch.updated_at) end%>
Warm Up
<%= m.name %><% if m.unfinishedMatches.first %><%=m.unfinishedMatches.first.bout_number%>
<%= m.unfinishedMatches.first.w1_name %> vs. <%= m.unfinishedMatches.first.w2_name %><% end %>
<% if m.unfinishedMatches.second %><%=m.unfinishedMatches.second.bout_number%>
<%= m.unfinishedMatches.second.w1_name %> vs. <%= m.unfinishedMatches.second.w2_name %><% end %>
<% if m.unfinishedMatches.third %><%=m.unfinishedMatches.third.bout_number%>
<%= m.unfinishedMatches.third.w1_name %> vs. <%= m.unfinishedMatches.third.w2_name %><% end %>
<% if m.unfinishedMatches.fourth %><%=m.unfinishedMatches.fourth.bout_number%>
<%= m.unfinishedMatches.fourth.w1_name %> vs. <%= m.unfinishedMatches.fourth.w2_name %><% end %>
<% if m.unfinishedMatches.first %><%=m.unfinishedMatches.first.bout_number%> - <%= m.unfinishedMatches.first.weight_max %> lbs
<%= m.unfinishedMatches.first.w1_name %> vs. <%= m.unfinishedMatches.first.w2_name %><% end %>
<% if m.unfinishedMatches.second %><%=m.unfinishedMatches.second.bout_number%> - <%= m.unfinishedMatches.second.weight_max %> lbs
<%= m.unfinishedMatches.second.w1_name %> vs. <%= m.unfinishedMatches.second.w2_name %><% end %>
<% if m.unfinishedMatches.third %><%=m.unfinishedMatches.third.bout_number%> - <%= m.unfinishedMatches.third.weight_max %> lbs
<%= m.unfinishedMatches.third.w1_name %> vs. <%= m.unfinishedMatches.third.w2_name %><% end %>
<% if m.unfinishedMatches.fourth %><%=m.unfinishedMatches.fourth.bout_number%> - <%= m.unfinishedMatches.fourth.weight_max %> lbs
<%= m.unfinishedMatches.fourth.w1_name %> vs. <%= m.unfinishedMatches.fourth.w2_name %><% end %>
Matchup
- +
<% end %>