summaryrefslogtreecommitdiff
path: root/app/views/brackets/show.html.erb
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-26 20:14:00 -0400
committertkimia <tkimia@purdue.edu>2014-04-26 20:14:00 -0400
commite60adb874faffd9bac678a19043532ff33dc6b07 (patch)
treec2a2deac1b15bd9abadacf8393e3142549afae1d /app/views/brackets/show.html.erb
parent93e291c8e5002fdea906bb8c96cd528fa8b75935 (diff)
bracket creation is good
Diffstat (limited to 'app/views/brackets/show.html.erb')
-rw-r--r--app/views/brackets/show.html.erb14
1 files changed, 8 insertions, 6 deletions
diff --git a/app/views/brackets/show.html.erb b/app/views/brackets/show.html.erb
index 9c7c14b..2e92bfb 100644
--- a/app/views/brackets/show.html.erb
+++ b/app/views/brackets/show.html.erb
@@ -1,13 +1,11 @@
-<p id="notice"><%= notice %></p>
-
<p>
<strong>User:</strong>
- <%= @bracket.user %>
+ <%= @bracket.user.user_name %>
</p>
<p>
<strong>Tournament:</strong>
- <%= @bracket.tournament %>
+ <%= @bracket.tournament.name %>
</p>
<p>
@@ -15,5 +13,9 @@
<%= @bracket.name %>
</p>
-<%= link_to 'Edit', edit_bracket_path(@bracket) %> |
-<%= link_to 'Back', brackets_path %>
+<% @bracket.bracket_matches.each do |m| %>
+ <p><b><%= m.match.id %></b></p>
+<% end %>
+
+
+<%= link_to 'Back', tournaments_path %>