diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-07-12 16:14:26 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-07-12 16:14:26 +0300 |
commit | 36c90356aa291b65661b523e2f79375a72d588b0 (patch) | |
tree | c91b874d508f3f98f16fb81801eafe54a77f800d /localwebsite/handlers/MiscHandler.php | |
parent | c9d16ad69525986096ed265a6ac9ec01696eb0ac (diff) |
localwebsite: add grafana links
Diffstat (limited to 'localwebsite/handlers/MiscHandler.php')
-rw-r--r-- | localwebsite/handlers/MiscHandler.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/localwebsite/handlers/MiscHandler.php b/localwebsite/handlers/MiscHandler.php index 4d2e20a..657395e 100644 --- a/localwebsite/handlers/MiscHandler.php +++ b/localwebsite/handlers/MiscHandler.php @@ -4,7 +4,12 @@ class MiscHandler extends RequestHandler { public function GET_main() { + global $config; $this->tpl->set_title('Главная'); + $this->tpl->set([ + 'grafana_sensors_url' => $config['grafana_sensors_url'], + 'grafana_inverter_url' => $config['grafana_inverter_url'], + ]); $this->tpl->render_page('index.twig'); } |