From 46239f28bd5121bbc9378de3efd7dccae24a77ae Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Fri, 24 Jan 2014 09:06:59 -0500 Subject: [PATCH] Wrote all brackets to static_pages brackets --- app/views/static_pages/_man7.html.erb | 113 +++++++++++++++++++++++ app/views/static_pages/_man8.html.erb | 113 +++++++++++++++++++++++ app/views/static_pages/_man9.html.erb | 113 +++++++++++++++++++++++ app/views/static_pages/brackets.html.erb | 9 ++ app/views/static_pages/weights.html.erb | 1 + 5 files changed, 349 insertions(+) create mode 100644 app/views/static_pages/_man7.html.erb create mode 100644 app/views/static_pages/_man8.html.erb create mode 100644 app/views/static_pages/_man9.html.erb diff --git a/app/views/static_pages/_man7.html.erb b/app/views/static_pages/_man7.html.erb new file mode 100644 index 0000000..c386fbe --- /dev/null +++ b/app/views/static_pages/_man7.html.erb @@ -0,0 +1,113 @@ +

<%= @weight.max %> lbs Bracket

+

Pool 1

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameR1R2R3R4R5
1. <%= @seed1.name %> <%= @seed1.season_win %>-<%= @seed1.season_loss %>BYEV3V5V4BYE
2. BYEV1V5V4BYEV3
3. <%= @seed5.name %> <%= @seed5.season_win %>-<%= @seed5.season_loss %>V4V1BYEV5BYE
4. <%= @seed7.name %> <%= @seed7.season_win %>-<%= @seed7.season_loss %>V3BYEBYEV1V5
5. <%= @seed4.name %> <%= @seed4.season_win %>-<%= @seed4.season_loss %>BYEBYEV1V3V4
+
+
+

Pool 2

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameR1R2R3R4R5
6. <%= @seed2.name %> <%= @seed2.season_win %>-<%= @seed2.season_loss %>BYEBYEV10V9BYE
7. BYEV6V10V9BYEBYE
8. <%= @seed6.name %> <%= @seed6.season_win %>-<%= @seed6.season_loss %>V9V6BYEV10BYE
9. BYEBYEBYEBYEV6V10
10. <%= @seed3.name %> <%= @seed3.season_win %>-<%= @seed3.season_loss %>BYEBYEV6BYEV9
\ No newline at end of file diff --git a/app/views/static_pages/_man8.html.erb b/app/views/static_pages/_man8.html.erb new file mode 100644 index 0000000..6255db0 --- /dev/null +++ b/app/views/static_pages/_man8.html.erb @@ -0,0 +1,113 @@ +

<%= @weight.max %> lbs Bracket

+

Pool 1

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameR1R2R3R4R5
1. <%= @seed1.name %> <%= @seed1.season_win %>-<%= @seed1.season_loss %>BYEV3V5V4BYE
2. BYEV1V5V4BYEV3
3. <%= @seed5.name %> <%= @seed5.season_win %>-<%= @seed5.season_loss %>V4V1BYEV5BYE
4. <%= @seed7.name %> <%= @seed7.season_win %>-<%= @seed7.season_loss %>V3BYEBYEV1V5
5. <%= @seed4.name %> <%= @seed4.season_win %>-<%= @seed4.season_loss %>BYEBYEV1V3V4
+
+
+

Pool 2

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameR1R2R3R4R5
6. <%= @seed2.name %> <%= @seed2.season_win %>-<%= @seed2.season_loss %>BYEV8V10V9BYE
7. BYEV6V10V9BYEV8
8. <%= @seed6.name %> <%= @seed6.season_win %>-<%= @seed6.season_loss %>V9V6BYEV10BYE
9. <%= @seed8.name %> <%= @seed8.season_win %>-<%= @seed8.season_loss %>V8BYEBYEV6V10
10. <%= @seed3.name %> <%= @seed3.season_win %>-<%= @seed3.season_loss %>BYEBYEV6V8V9
\ No newline at end of file diff --git a/app/views/static_pages/_man9.html.erb b/app/views/static_pages/_man9.html.erb new file mode 100644 index 0000000..b26be8e --- /dev/null +++ b/app/views/static_pages/_man9.html.erb @@ -0,0 +1,113 @@ +

<%= @weight.max %> lbs Bracket

+

Pool 1

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameR1R2R3R4R5
1. <%= @seed1.name %> <%= @seed1.season_win %>-<%= @seed1.season_loss %>V2V3V5V4BYE
2. <%= @seed9.name %> <%= @seed9.season_win %>-<%= @seed9.season_loss %>V1V5V4BYEV3
3. <%= @seed5.name %> <%= @seed5.season_win %>-<%= @seed5.season_loss %>V4V1BYEV5V2
4. <%= @seed7.name %> <%= @seed7.season_win %>-<%= @seed7.season_loss %>V3BYEV2V1V5
5. <%= @seed4.name %> <%= @seed4.season_win %>-<%= @seed4.season_loss %>BYEV2V1V3V4
+
+
+

Pool 2

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameR1R2R3R4R5
6. <%= @seed2.name %> <%= @seed2.season_win %>-<%= @seed2.season_loss %>BYEV8V10V9BYE
7. BYEV6V10V9BYEV8
8. <%= @seed6.name %> <%= @seed6.season_win %>-<%= @seed6.season_loss %>V9V6BYEV10BYE
9. <%= @seed8.name %> <%= @seed8.season_win %>-<%= @seed8.season_loss %>V8BYEBYEV6V10
10. <%= @seed3.name %> <%= @seed3.season_win %>-<%= @seed3.season_loss %>BYEBYEV6V8V9
\ No newline at end of file diff --git a/app/views/static_pages/brackets.html.erb b/app/views/static_pages/brackets.html.erb index 50c8a69..f2daad4 100644 --- a/app/views/static_pages/brackets.html.erb +++ b/app/views/static_pages/brackets.html.erb @@ -1,3 +1,12 @@ <% if @bracket_size = 10 %> <%= render 'man10' %> +<% end %> +<% if @bracket_size = 9 %> +<%= render 'man9' %> +<% end %> +<% if @bracket_size = 8 %> +<%= render 'man8' %> +<% end %> +<% if @bracket_size = 7 %> +<%= render 'man7' %> <% end %> \ No newline at end of file diff --git a/app/views/static_pages/weights.html.erb b/app/views/static_pages/weights.html.erb index 7751184..cced191 100644 --- a/app/views/static_pages/weights.html.erb +++ b/app/views/static_pages/weights.html.erb @@ -1,3 +1,4 @@ <% @weights.each do |weight| %> <%= link_to "#{weight.max}" , "/static_pages/brackets?weight=#{weight.id}" %> +
<% end %> \ No newline at end of file