<%# luci-theme-darkmatter Copyright 2017 chrono Darkmatter is an alternative HTML5 theme for LuCI that has evolved from luci-theme-bootstrap & luci-theme-material, in an attempt to bring a more concise, clean and visually pleasing UX to LEDE/OpenWRT. Have a bug? Please create an issue here on GitHub! https://github.com/apollo-ng/luci-theme-darkmatter/issues luci-theme-material Copyright 2015 Lutty Yang luci-theme-bootstrap: Copyright 2008 Steven Barth Copyright 2008 Jo-Philipp Wich Copyright 2012 David Menting This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. -%> <% local ver = require "luci.version" local sys = require "luci.sys" local util = require "luci.util" local http = require "luci.http" local disp = require "luci.dispatcher" local boardinfo = util.ubus("system", "board") local node = disp.context.dispatched -- send as HTML5 http.prepare_content("text/html") -%> <%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI <% if node and node.css then %> <% end -%> <% if css then %> <% end -%>
<%=boardinfo.hostname or "?"%>
<%:Collecting data...%>
<%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>

<%:No password set!%>

<%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%>
<% if disp.lookup("admin/system/admin") then %> <% end %>
<%- end -%>