From 97da0baeb602c33d24e789a8ea635f92a54526b3 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 14 Sep 2022 13:30:45 +0200 Subject: [PATCH] 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 --- .../template/admin_status/index.ut} | 39 +++++++------------ 1 file changed, 15 insertions(+), 24 deletions(-) rename modules/luci-mod-status/{luasrc/view/admin_status/index.htm => ucode/template/admin_status/index.ut} (69%) diff --git a/modules/luci-mod-status/luasrc/view/admin_status/index.htm b/modules/luci-mod-status/ucode/template/admin_status/index.ut similarity index 69% rename from modules/luci-mod-status/luasrc/view/admin_status/index.htm rename to modules/luci-mod-status/ucode/template/admin_status/index.ut index 7d7a42c2e3..4d018a3efd 100644 --- a/modules/luci-mod-status/luasrc/view/admin_status/index.htm +++ b/modules/luci-mod-status/ucode/template/admin_status/index.ut @@ -1,15 +1,15 @@ -<%# +{# Copyright 2008 Steven Barth - Copyright 2008-2018 Jo-Philipp Wich + Copyright 2008-2022 Jo-Philipp Wich Licensed to the public under the Apache License 2.0. --%> +-#} -<%+header%> +{% include('header') %} -

<%:Status%>

+

{{ _('Status') }}

-
<%:Loading view…%>
+
{{ _('Loading view…') }}
-<%+footer%> +{% include('footer') %}