{# Material is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI luci-theme-material Copyright 2015-2017 Lutty Yang Have a bug? Please create an issue here on GitHub! https://github.com/LuttyYang/luci-theme-material/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 -#} {% import { getuid, getspnam } from 'luci.core'; const boardinfo = ubus.call('system', 'board'); const hostname = striptags(boardinfo?.hostname ?? '?'); http.prepare_content('text/html; charset=UTF-8'); -%} {% if (node?.css): %} {% endif %} {{ hostname }}{{ node?.title ? ` - ${striptags(node.title)}` : '' }} - LuCI {% if (css): %} {% endif %}
{{ _('Collecting data...') }}
{% if (getuid() == 0 && getspnam('root')?.pwdp === ''): %}

{{ _('No password set!') }}

{{ _('There is no password set on this router. Please configure a root password to protect the web interface.') }}

{% if (dispatcher.lookup("admin/system/admin")): %} {% endif %}
{% endif %} {% if (boardinfo?.rootfs_type == "initramfs"): %}

{{ _('System running in recovery (initramfs) mode.') }}

{{ _('No changes to settings will be stored and are lost after rebooting. This mode should only be used to install a firmware upgrade') }}

{% if (dispatcher.lookup("admin/system/flash")): %} {% endif %}
{% endif %}