[icinga-checkins] icinga.org: icingaweb2-module-director/master: list/table: do not render empty tables

git at icinga.org git at icinga.org
Thu Jun 16 15:09:52 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 56bc31ce974263b2cac5317d0e8e93701e42caac
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=56bc31ce974263b2cac5317d0e8e93701e42caac

Author: Thomas Gelf <thomas at gelf.net>
Date:   Thu Jun 16 14:44:01 2016 +0200

list/table: do not render empty tables

---

 application/views/scripts/list/table.phtml |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/application/views/scripts/list/table.phtml b/application/views/scripts/list/table.phtml
index 518c1a7..fa9dc3a 100644
--- a/application/views/scripts/list/table.phtml
+++ b/application/views/scripts/list/table.phtml
@@ -10,5 +10,7 @@
 
 <div class="content"<?php if (! $this->stayHere): ?> data-base-target="_next"<?php endif ?>>
 <?= $this->form ?>
+<?php if ($table->count()): ?>
 <?= $this->table->render() ?>
+<?php endif ?>
 </div>



More information about the icinga-checkins mailing list