16 lines
515 B
Plaintext
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'
|