mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:41:59 +01:00
gui: add support for external dashboard
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
c3f4f2148c
commit
4a7ec5d41d
@ -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;
|
||||
|
@ -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');
|
||||
|
||||
|
@ -1 +1,5 @@
|
||||
<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 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 } ?>
|
||||
|
Loading…
Reference in New Issue
Block a user