From 38be6c13f76e893cf47636257071b440dec0c5b2 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 7 Sep 2025 17:32:13 +0200 Subject: initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- .../prometheus/files/console_libraries/menu.lib | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 bundles/prometheus/files/console_libraries/menu.lib (limited to 'bundles/prometheus/files/console_libraries/menu.lib') diff --git a/bundles/prometheus/files/console_libraries/menu.lib b/bundles/prometheus/files/console_libraries/menu.lib new file mode 100644 index 0000000..dc87f9f --- /dev/null +++ b/bundles/prometheus/files/console_libraries/menu.lib @@ -0,0 +1,64 @@ +{{/* vim: set ft=html: */}} + +{{/* Navbar, should be passed . */}} +{{ define "navbar" }} + +{{ end }} + +{{/* LHS menu, should be passed . */}} +{{ define "menu" }} +
+ +
+{{ end }} + +{{/* Helper, pass (args . path name) */}} +{{ define "_menuItem" }} +{{ $pagelink := .arg0.Path }} +{{ if .arg0.Params.instance }}{{ $pagelink = (printf "%v?instance=%v" .arg0.Path .arg0.Params.instance) }}{{ end }} + +{{ end }} -- cgit 1.4.1