Split status page into a series of partials as discussed in PR #2359. Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
14 lines
298 B
HTML
14 lines
298 B
HTML
<%#
|
|
Copyright 2008 Steven Barth <steven@midlink.org>
|
|
Copyright 2008-2018 Jo-Philipp Wich <jo@mein.io>
|
|
Licensed to the public under the Apache License 2.0.
|
|
-%>
|
|
|
|
<%
|
|
local fs = require "nixio.fs"
|
|
local has_dhcp = fs.access("/etc/config/dhcp")
|
|
|
|
if has_dhcp then
|
|
include("lease_status")
|
|
end
|
|
%>
|