icingaweb2-module-director/application/views/scripts/config/files.phtml

43 lines
1.2 KiB
PHTML
Raw Normal View History

<div class="controls">
<?= $this->tabs ?>
<h1><?= $this->escape($this->title) ?></h1>
<span data-base-target="_next">
<?= $this->addLink ?>
</span>
<?php if (count($table) || ! $this->filterEditor->getFilter()->isEmpty()): ?>
<?= $this->filterEditor ?>
<?php endif ?>
<?= $this->table->getPaginator() ?>
</div>
<div class="content" data-base-target="_next">
<table class="name-value-table">
<tr>
<th><?= $this->translate('Actions') ?></th>
<td data-base-target="_main"><?= $this->qlink(
$this->translate('Re-deploy now'),
'director/config/deploy',
array('checksum' => $this->config->getHexChecksum()),
array('class' => 'icon-reply-all')
) ?><br /><?= $this->qlink(
$this->translate('Last related activity'),
'director/show/activitylog',
array('checksum' => $this->config->getLastActivityHexChecksum()),
array('class' => 'icon-clock', 'data-base-target' => '_next')
) ?></td>
</tr>
<tr>
<th><?= $this->translate('Statistics') ?></th>
<td><?= sprintf(
$this->translate('%d files rendered in %0.2fs'),
count($this->config->getFiles()),
$config->getDuration() / 1000
) ?></td>
</tr>
</table>
<?php if (count($table)): ?>
<?= $this->table->render() ?>
<?php endif ?>
</div>