{# Copyright 2008 Steven Barth Copyright 2012 David Menting Copyright 2008-2022 Jo-Philipp Wich Licensed to the public under the Apache License 2.0. -#} {% import { getuid, getspnam } from 'luci.core'; const boardinfo = ubus.call('system', 'board'); const darkpref = (theme == 'bootstrap-dark' ? 'true' : (theme == 'bootstrap-light' ? 'false' : null)); http.prepare_content('text/html; charset=UTF-8'); -%} {{ striptags(`${boardinfo.hostname ?? '?'}${node ? ` - ${node.title}` : ''}`) }} - LuCI {% if (!darkpref): %} {% endif %} {% if (node?.css): %} {% endif %} {% if (css): %} {% endif %} {% if (!blank_page): %}
{{ striptags(boardinfo.hostname ?? '?') }}
{% 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 %} {% endif %}