diff --git a/template/footer.htm b/template/footer.htm index 55e3ec2..635f9d4 100644 --- a/template/footer.htm +++ b/template/footer.htm @@ -17,49 +17,62 @@ Licensed to the public under the Apache License 2.0 -%> +<% +local ver = require "luci.version" +local uci = require "luci.model.uci".cursor() +local config = uci:get_all("alpha", "config") +local icon = { + ['/cgi-bin/luci/admin/status/overview'] = '/gaya/icon/navbar/status.png', + ['/cgi-bin/luci/admin/services/ttyd'] = '/gaya/icon/navbar/terminal.png', + ['/cgi-bin/luci/admin/services/openclash'] = '/gaya/icon/navbar/oc.png', + ['/cgi-bin/luci/admin/nas/tinyfm'] = '/gaya/icon/navbar/nas.png', + ['/cgi-bin/luci/admin/modem/main'] = '/gaya/icon/navbar/modem.png', + ['/cgi-bin/luci/admin/network/network'] = '/gaya/icon/navbar/interface.png' +} -<% local ver = require "luci.version" %> - - +local function getLink(nav) + local link = config[nav] + return (link ~= "none") and link or nil +end +%> + + - - - -