From 97da0baeb602c33d24e789a8ea635f92a54526b3 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 14 Sep 2022 13:30:45 +0200 Subject: luci-mod-status: transform status page Lua template into ucode template Transform the only Lua template of the status module into an equivalent ucode template and make it conditionally include the legacy Lua logic factored out in a previous commit. Only if the ucode Lua bridge is installed and loadable, the Lua template loading the legacy Lua status partials is included. After this commit, luci-mod-status is free of Lua dependencies. Signed-off-by: Jo-Philipp Wich --- .../ucode/template/admin_status/index.ut | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 modules/luci-mod-status/ucode/template/admin_status/index.ut (limited to 'modules/luci-mod-status/ucode/template/admin_status/index.ut') diff --git a/modules/luci-mod-status/ucode/template/admin_status/index.ut b/modules/luci-mod-status/ucode/template/admin_status/index.ut new file mode 100644 index 0000000000..4d018a3efd --- /dev/null +++ b/modules/luci-mod-status/ucode/template/admin_status/index.ut @@ -0,0 +1,69 @@ +{# + Copyright 2008 Steven Barth + Copyright 2008-2022 Jo-Philipp Wich + Licensed to the public under the Apache License 2.0. +-#} + +{% include('header') %} + +

{{ _('Status') }}

+ +
+
{{ _('Loading view…') }}
+
+ + + + + + + +{% include('footer') %} -- cgit v1.2.3