don't show table when there are no players
This commit is contained in:
parent
b483ff56c6
commit
7e80d41b5e
|
@ -2,6 +2,7 @@
|
|||
|
||||
<h1>Players</h1>
|
||||
|
||||
<% if @players.any? %>
|
||||
<div id="players">
|
||||
<table>
|
||||
<thead>
|
||||
|
@ -27,6 +28,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<p><%= pluralize(@players.count, 'total player') %></p>
|
||||
|
||||
|
|
Loading…
Reference in New Issue