From ce358ad41132812612baf00217679971c8db0d91 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Mon, 9 Feb 2026 22:13:56 +0100 Subject: [PATCH] luci-theme: html title: swap hostname <-> page title hostname first to differentiate units from at-a-glance browser tab view. follow-up to 18d14980ddf7f85ab30ea971d5875f7d3a29353a Signed-off-by: Paul Donald --- .../ucode/template/themes/bootstrap/header.ut | 2 +- .../ucode/template/themes/material/header.ut | 2 +- .../ucode/template/themes/openwrt2020/header.ut | 2 +- .../ucode/template/themes/openwrt.org/header.ut | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut b/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut index 01444cabe0..6d8893eb9e 100644 --- a/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut +++ b/themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut @@ -18,7 +18,7 @@ - {{ striptags(`${boardinfo.hostname ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} | LuCI + {{ striptags(`${boardinfo.hostname + ' | ' ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} LuCI {% if (!darkpref): %} -{{ striptags(`${boardinfo.hostname ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} | LuCI +{{ striptags(`${boardinfo.hostname + ' | ' ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} LuCI {% if (css): %} {% endif %} diff --git a/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut b/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut index 8a06bfab7f..a7c3211868 100644 --- a/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut +++ b/themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut @@ -22,7 +22,7 @@ -{{ striptags(`${boardinfo.hostname ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} | LuCI +{{ striptags(`${boardinfo.hostname + ' | ' ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} LuCI {% if (css): %} {% endif %} diff --git a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut index 838a5826ff..4658ef1918 100644 --- a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut +++ b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut @@ -28,7 +28,7 @@ -{{ striptags(`${boardinfo.hostname ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} | LuCI +{{ striptags(`${boardinfo.hostname + ' | ' ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} LuCI