From 332ec93366315fa1ed7b4acd7a3407c96e8ddfa7 Mon Sep 17 00:00:00 2001 From: sadbeast Date: Wed, 31 Jan 2024 17:47:56 -0800 Subject: initial mistake --- app/views/leagues/index.html.erb | 3 +++ app/views/leagues/show.html.erb | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 app/views/leagues/index.html.erb create mode 100644 app/views/leagues/show.html.erb (limited to 'app/views/leagues') diff --git a/app/views/leagues/index.html.erb b/app/views/leagues/index.html.erb new file mode 100644 index 0000000..bcfa1fd --- /dev/null +++ b/app/views/leagues/index.html.erb @@ -0,0 +1,3 @@ +<% @leagues.each do |league| %> +

<%= link_to league.name, league_path(league) %>

+<% end %> diff --git a/app/views/leagues/show.html.erb b/app/views/leagues/show.html.erb new file mode 100644 index 0000000..d7a43d3 --- /dev/null +++ b/app/views/leagues/show.html.erb @@ -0,0 +1,33 @@ +
+<% @player_scores.each do |score| %> +
<%= score.player %> - <%= score.score %>
+<% end %> +
+ + + + + + + + + + <% @scores.each do |score| %> + + + + + + <% end %> + +
<%= sort_link(@q, :team) %><%= sort_link(@q, :player) %><%= sort_link(@q, :total) %>
<%= score.team %><%= score.player %> + <%= score.total %> +

+ W: <%= score.win %> + <% if score.playoffs > 0 %>P: <%= score.playoffs %><% end %> + <% if score.divisional > 0 %>D: <%= score.divisional %><% end %> + <% if score.conference > 0 %>C: <%= score.conference %><% end %> + <% if score.superbowl > 0 %>S: <%= score.superbowl %><% end %> + <% if score.champion > 0 %>SW: <%= score.champion %><% end %> +

+
-- cgit v1.2.3