a bit of trivial defensive templating
This commit is contained in:
parent
0b853163bf
commit
dd06034974
@ -1,7 +1,9 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<% @mash_tournament.mashes.each do |mash| %>
|
<% @mash_tournament.mashes.each do |mash| %>
|
||||||
|
<% if mash.map_a.present? && mash.map_b.present? && mash.winner.present? %>
|
||||||
<li><%= mash.map_a.name %> vs. <%= mash.map_b.name %>, winner = <%= mash.winner.name %></li>
|
<li><%= mash.map_a.name %> vs. <%= mash.map_b.name %>, winner = <%= mash.winner.name %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user