<div class="controls">
<?= $this->tabs ?>
<h1><?= $this->escape($this->title) ?></h1>
</div>

<div class="content">
<?php if ($this->objects): ?>
<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>
<?php foreach ($this->objects as $object): ?>
  <tr><td><?= $this->qlink(
    str_replace('!', ': ', $object),
    'director/inspect/object',
    array(
        'endpoint' => $this->endpoint,
        'type'     => $this->type->name,
        'plural'   => $this->type->plural_name,
        'name'     => $object
    )
  ) ?></td></tr>
<?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>
</div>
