From 754f7f594800dffa3c42d6b6945f17ac7af61d3c Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Sun, 28 Oct 2012 12:47:17 -0700 Subject: [PATCH] Only show clear button if it makes sense --- web/views/index.slim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/views/index.slim b/web/views/index.slim index 36767c20..048113dc 100755 --- a/web/views/index.slim +++ b/web/views/index.slim @@ -3,7 +3,8 @@ h3 Workers == slim :_workers -.row - .span2 - form action="#{root_path}reset" method="post" - button.btn.btn-primary.btn-block type="submit" title="If you kill -9 Sidekiq, this table can fill up with old data." Clear worker list +- if workers.size > 0 + .row + .span2 + form action="#{root_path}reset" method="post" + button.btn.btn-primary.btn-block type="submit" title="If you kill -9 Sidekiq, this table can fill up with old data." Clear worker list