Prevent errors when displaying flag icons for users that have not country set.

This commit is contained in:
Luke Barratt 2014-03-31 21:57:56 +01:00
parent 8836bc49f2
commit 31a385823c

View file

@ -15,7 +15,7 @@
<td><%= radio_button_tag :player, gatherer.id %><%= flag gatherer.user.country %></td>
<td><%= namelink gatherer.user %></td>
<% else %>
<td><%= flag gatherer.user.country %></td>
<td><%= flag(gatherer.user.country) if gatherer.user && gatherer.user.country %></td>
<% if gatherer == captain and gatherer.team == gatherer.gather.turn %>
<td>&#187;
<% else %>