inspect/type: render a list, provide links

This commit is contained in:
Thomas Gelf 2015-11-26 18:53:08 +01:00
parent 66b1daa1ba
commit 3c5118ca0a
1 changed files with 13 additions and 5 deletions

View File

@ -4,9 +4,17 @@
</div> </div>
<div class="content"> <div class="content">
<pre> <table class="common-table table-row-selectable" data-base-target="_next">
<?= $this->escape(print_r($this->type, 1)) ?> <thead><tr><th><?= $this->translate('Object name') ?></th></tr></thead>
<tbody>
<?= $this->escape(print_r($this->objects, 1)) ?> <?php foreach ($this->objects as $object): ?>
</pre> <tr><td><?= $this->qlink(
str_replace('!', ': ', $object),
'director/inspect/object',
array('type' => $this->type->name, 'plural' => $this->type->plural_name, 'name' => $object)
) ?></td></tr>
<?php endforeach ?>
</tbody>
</table>
<pre><?= $this->escape(print_r($this->type, 1)) ?></pre>
</div> </div>