{# Luxe is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI luci-theme-material Copyright 2015-2017 Lutty Yang luci-theme-luxe Copyright 2026 de-quenx | xidz_x Have a bug? Please create an issue here on GitHub! https://github.com/de-quenx/luci-theme-luxe/issues luci-theme-bootstrap: Copyright 2008 Steven Barth Copyright 2008-2016 Jo-Philipp Wich Copyright 2012 David Menting MUI: https://github.com/muicss/mui Licensed to the public under the Apache License 2.0 -#} {% let fs = require("fs"); let binfo = (type(boardinfo) == 'object') ? boardinfo : {}; let hn_file = fs.readfile("/proc/sys/kernel/hostname"); let hostname = (type(hn_file) == 'string' && length(hn_file) > 0) ? replace(hn_file, "\n", "") : (binfo.hostname || "OpenWrt"); let e = (type(env) == 'object') ? env : {}; let req_uri = e.REQUEST_URI || ''; let user = (type(duser) == 'string') ? duser : ''; let is_failed = (type(fuser) != 'undefined' && fuser) ? true : false; let m = (type(media) == 'string') ? media : ''; -%} {{ hostname }}
{% if (is_failed): %}
Invalid username / password! Please try again.
{% endif %}