<div class="controls">
<?= $this->tabs ?>
<h1>Config: <?= $this->config->getHexChecksum() ?></h1>

<table class="name-value-table">
 <tr>
  <th><?= $this->translate('Deploy to master') ?></th>
  <td data-base-target="_main"><?= $this->qlink(
    $this->config->getHexChecksum(),
    'director/config/deploy',
    array('checksum' => $this->config->getHexChecksum())
  ) ?></td>

 </tr>
 <tr>
  <th><?= $this->translate('Last related activity') ?></th>
  <td><?= $this->qlink(
    $this->config->getLastActivityHexChecksum(),
    'director/show/activitylog',
    array('checksum' => $this->config->getLastActivityHexChecksum())
  ) ?></td>

 </tr>
 <tr>
  <th><?= $this->translate('Generated files') ?></th>
  <td><?= count($this->config->getFiles()) ?></td>
 </tr>
</table>
</div>

<div class="content">
<?php foreach ($this->config->getFiles() as $filename => $file): ?>
<h2><?= $this->escape($filename) ?></h2>
<pre>
<?= $this->escape($file->getContent()) ?>
</pre>
<?php endforeach ?>
</div>
