summaryrefslogtreecommitdiff
path: root/localwebsite/handlers
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-12 16:14:26 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-12 16:14:26 +0300
commit36c90356aa291b65661b523e2f79375a72d588b0 (patch)
treec91b874d508f3f98f16fb81801eafe54a77f800d /localwebsite/handlers
parentc9d16ad69525986096ed265a6ac9ec01696eb0ac (diff)
localwebsite: add grafana links
Diffstat (limited to 'localwebsite/handlers')
-rw-r--r--localwebsite/handlers/MiscHandler.php5
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');
}