don't show table when there are no players

This commit is contained in:
Ben Harris 2022-01-31 14:30:39 -05:00
parent b483ff56c6
commit 7e80d41b5e
1 changed files with 2 additions and 0 deletions

View File

@ -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>