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