From b14cdd3c9ef8762eee2d2a2f3296d82c7f3c8b58 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Mon, 12 Mar 2012 00:32:57 -0400 Subject: [PATCH] Adding a header to #show to announce winner. Don't tell Demeter. --- rails/map-mash/app/views/mash_tournaments/show.html.haml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rails/map-mash/app/views/mash_tournaments/show.html.haml b/rails/map-mash/app/views/mash_tournaments/show.html.haml index 4eaee88..4725321 100644 --- a/rails/map-mash/app/views/mash_tournaments/show.html.haml +++ b/rails/map-mash/app/views/mash_tournaments/show.html.haml @@ -1,3 +1,7 @@ +%h1 + You chose + %em #{@mash_tournament.rounds.reverse.first.mashes.first.winner.name}! + - @mash_tournament.rounds.reverse.each do |round| %h2 Round #{round.number} - round.mashes.each do |mash|