gui: add support for external dashboard

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2018-04-15 18:42:34 +02:00
parent c3f4f2148c
commit 4a7ec5d41d
3 changed files with 13 additions and 2 deletions

View File

@ -37,6 +37,8 @@ $config['THEME'] = 'default';
$config['SITE_NAME'] = 'piler.yourdomain.com';
$config['SITE_URL'] = 'http://piler.yourdomain.com/';
$config['EXTERNAL_DASHBOARD_URL'] = '';
$config['SESSION_EXPIRY'] = 3600;
$config['ENABLE_SAAS'] = 0;

View File

@ -7,7 +7,12 @@ class ControllerHealthHealth extends Controller {
$this->id = "content";
$this->template = "health/health.tpl";
if(EXTERNAL_DASHBOARD_URL) {
$this->layout = "common/layout-empty";
}
else {
$this->layout = "common/layout";
}
$this->load->model('health/health');

View File

@ -1 +1,5 @@
<?php if(EXTERNAL_DASHBOARD_URL) { ?>
<iframe width="100%" height="100%" frameborder="0" src="<?php print EXTERNAL_DASHBOARD_URL; ?>"></iframe>
<?php } else { ?>
<span id="A1"><div id="spinner" class="alert alert-info lead"><i class="icon-spinner icon-spin icon-2x pull-left"></i><?php print $text_loading; ?></div></span>
<?php } ?>