about summary refs log tree commit diff
path: root/app/views/players/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/players/index.html.erb')
-rw-r--r--app/views/players/index.html.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/players/index.html.erb b/app/views/players/index.html.erb
index a635ded..5ab8e81 100644
--- a/app/views/players/index.html.erb
+++ b/app/views/players/index.html.erb
@@ -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>