diff options
Diffstat (limited to 'app/views/matches/show.html.erb')
-rw-r--r-- | app/views/matches/show.html.erb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb index b31c989..d8112b7 100644 --- a/app/views/matches/show.html.erb +++ b/app/views/matches/show.html.erb @@ -22,3 +22,13 @@ <%= link_to 'Edit', edit_tournament_match_path(@tournament, @match) %> | <%= link_to 'Back', tournament_matches_path %> + +<% unless @match.winner.nil? %> + <p> + <strong>Winner:</strong> + <%= @match.winner.users.collect{|u| u.user_name}.join(", ") %> + </p> +<% end %> +<%= link_to 'Edit', edit_match_path(@match) %> | +<%= link_to 'Back', matches_path %> + |