process/show: render unbound nodes only for full tree

This commit is contained in:
Thomas Gelf 2015-09-11 15:12:49 +02:00
parent 73fe7cd2da
commit 60ff12b42e

View file

@ -1,3 +1,8 @@
<?php
use Icinga\Module\Businessprocess\BusinessProcess;
?>
<?php if (! $this->compact): ?>
<div class="controls">
<?= $this->tabs ?>
@ -59,8 +64,10 @@
<div class="bp">
<?= $this->bp->renderHtml($this) ?>
<?php if (! $this->bpconfig->isLocked()): ?>
<?php if ($this->bp instanceof BusinessProcess): /* do not render when showing subtree */ ?>
<?= $this->bp->renderUnbound($this) ?>
<?php endif ?>
<?php endif ?>
</div>
<?= $this->render('warnings.phtml') ?>
</div>