box-o-sand/map-mash/app/views/mash_tournaments/show.html.haml
Dan Buch d834b81003 Add 'map-mash/' from commit '7f16409d1257e7471fef35c18bcdf32856b908e3'
git-subtree-dir: map-mash
git-subtree-mainline: eacc351b17
git-subtree-split: 7f16409d12
2013-01-09 23:59:47 -05:00

16 lines
515 B
Plaintext

%h1
Tournament #{@mash_tournament.id} Complete! 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|
%ul
- if mash.map_a.present? && mash.map_b.present? && mash.winner.present?
%li
#{mash.map_a.name} vs. #{mash.map_b.name}, winner =
%strong #{mash.winner.name}
= link_to 'New!', :controller => 'mash_tournaments', :action => 'new'