diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php
index 371bbf10..c3e40d11 100644
--- a/application/controllers/ConfigController.php
+++ b/application/controllers/ConfigController.php
@@ -49,6 +49,7 @@ class ConfigController extends ActionController
// Show all files for a given config
public function filesAction()
{
+ $this->view->title = $this->translate('Generated config');
$tabs = $this->getTabs();
if ($deploymentId = $this->params->get('deployment_id')) {
@@ -73,7 +74,10 @@ class ConfigController extends ActionController
->setConnection($this->db())
->setConfigChecksum($checksum);
- $this->render('objects/table', null, true);
+ $this->view->config = IcingaConfig::load(
+ Util::hex2binary($this->params->get('checksum')),
+ $this->db()
+ );
}
// Show a single file
diff --git a/application/views/scripts/config/files.phtml b/application/views/scripts/config/files.phtml
new file mode 100644
index 00000000..cddc2d47
--- /dev/null
+++ b/application/views/scripts/config/files.phtml
@@ -0,0 +1,42 @@
+
+
+
+ = $this->translate('Actions') ?> |
+ = $this->qlink(
+ $this->translate('Re-deploy now'),
+ 'director/config/deploy',
+ array('checksum' => $this->config->getHexChecksum()),
+ array('class' => 'icon-reply-all')
+ ) ?> = $this->qlink(
+ $this->translate('Last related activity'),
+ 'director/show/activitylog',
+ array('checksum' => $this->config->getLastActivityHexChecksum()),
+ array('class' => 'icon-clock', 'data-base-target' => '_next')
+ ) ?> |
+
+
+ = $this->translate('Statistics') ?> |
+ = sprintf(
+ $this->translate('%d files rendered in %0.2fs'),
+ count($this->config->getFiles()),
+ $config->getDuration() / 1000
+ ) ?> |
+
+
+
+
+= $this->table->render() ?>
+
+