From 77014af67edbced3d7ccf5b6650d56c3c6b39cbb Mon Sep 17 00:00:00 2001 From: Anton Kikin Date: Mon, 10 Dec 2018 19:56:42 +0300 Subject: luci-mod-status: split status page into a series of partials Split status page into a series of partials as discussed in PR #2359. Signed-off-by: Anton Kikin --- .../luasrc/view/admin_status/index/50-dsl.htm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/luci-mod-status/luasrc/view/admin_status/index/50-dsl.htm (limited to 'modules/luci-mod-status/luasrc/view/admin_status/index/50-dsl.htm') diff --git a/modules/luci-mod-status/luasrc/view/admin_status/index/50-dsl.htm b/modules/luci-mod-status/luasrc/view/admin_status/index/50-dsl.htm new file mode 100644 index 000000000..f37bf147a --- /dev/null +++ b/modules/luci-mod-status/luasrc/view/admin_status/index/50-dsl.htm @@ -0,0 +1,20 @@ +<%# + Copyright 2008 Steven Barth + Copyright 2008-2018 Jo-Philipp Wich + Licensed to the public under the Apache License 2.0. +-%> + +<% + local fs = require "nixio.fs" + local has_dsl = fs.access("/etc/init.d/dsl_control") +%> + +<% if has_dsl then %> +
+

<%:DSL%>

+ +
+

<%:Collecting data...%>

+
+
+<% end %> -- cgit v1.2.3