{# Alpha os is made from me for all .. especially for indo wrt members and fan of OpenWrt or DBAI Community luci-theme-alpha Copyright 2022 derisamedia -#} {% import { getuid, getspnam } from 'luci.core'; const boardinfo = ubus.call('system', 'board') || {}; http.prepare_content("text/html; charset=UTF-8"); -%} {% if (node?.css): %} {% endif %} {{ striptags(`${boardinfo.hostname ?? '?'}${dispatched?.title ? ` - ${_(dispatched.title)}` : ''}`) }} - LuCI {% if (css): %} {% endif %}
{% if (getuid() == 0 && getspnam('root')?.pwdp === '' && join('-', ctx.request_path) != "admin-system-admin-password"): %}

{{ _('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 %}