From: Jo-Philipp Wich Date: Wed, 14 Sep 2022 11:30:45 +0000 (+0200) Subject: luci-mod-status: transform status page Lua template into ucode template X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=97da0baeb602c33d24e789a8ea635f92a54526b3;p=openwrt-luci.git 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 --- 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') %}