inspect/type: tell also whether no object was found

This commit is contained in:
Thomas Gelf 2016-02-19 13:40:55 +01:00
parent 9f96a08609
commit 2f4ffd30af
1 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<div class="content">
<?php if ($this->objects): ?>
<h2><?= sprintf($this->translate('%d objects found'), count($this->objects)) ?></h2>
<p><?= sprintf($this->translate('%d objects found'), count($this->objects)) ?></p>
<table class="common-table table-row-selectable" data-base-target="_next">
<thead><tr><th><?= $this->translate('Object name') ?></th></tr></thead>
<tbody>
@ -23,6 +23,8 @@
<?php endforeach ?>
</tbody>
</table>
<?php else: ?>
<p><?= $this->translate('No object found') ?></p>
<?php endif ?>
<h2>Type attributes</h2>
<pre><?= $this->renderPlainObject($this->type) ?></pre>