Getting at least one tournament working!
This commit is contained in:
11
rails/map-mash/app/views/mash_tournaments/show.html.haml
Normal file
11
rails/map-mash/app/views/mash_tournaments/show.html.haml
Normal file
@@ -0,0 +1,11 @@
|
||||
- @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'
|
||||
Reference in New Issue
Block a user