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>
|
<h1>Players</h1>
|
||||||
|
|
||||||
|
<% if @players.any? %>
|
||||||
<div id="players">
|
<div id="players">
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -27,6 +28,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<p><%= pluralize(@players.count, 'total player') %></p>
|
<p><%= pluralize(@players.count, 'total player') %></p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue