summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Donald2026-02-09 21:13:56 +0000
committerPaul Donald2026-02-09 21:14:59 +0000
commitce358ad41132812612baf00217679971c8db0d91 (patch)
tree47aa3a927a18bdc015a38b8cc5e83c9ad3fdfcc9
parent5a7ee4322e7ba72e1c2f222397957974a3ff5e63 (diff)
downloadluci-ce358ad41132812612baf00217679971c8db0d91.tar.gz
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 <newtwen+github@gmail.com>
-rw-r--r--themes/luci-theme-bootstrap/ucode/template/themes/bootstrap/header.ut2
-rw-r--r--themes/luci-theme-material/ucode/template/themes/material/header.ut2
-rw-r--r--themes/luci-theme-openwrt-2020/ucode/template/themes/openwrt2020/header.ut2
-rw-r--r--themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut2
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 @@
<html lang="{{ dispatcher.lang }}" {{ darkpref ? `data-darkmode="${darkpref}"` : '' }}>
<head>
<meta charset="utf-8">
- <title>{{ striptags(`${boardinfo.hostname ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} | LuCI</title>
+ <title>{{ striptags(`${boardinfo.hostname + ' | ' ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} LuCI</title>
{% if (!darkpref): %}
<script>
var mediaQuery = window.matchMedia('(prefers-color-scheme: dark)'),
diff --git a/themes/luci-theme-material/ucode/template/themes/material/header.ut b/themes/luci-theme-material/ucode/template/themes/material/header.ut
index 7a208a3c40..d90fc33494 100644
--- a/themes/luci-theme-material/ucode/template/themes/material/header.ut
+++ b/themes/luci-theme-material/ucode/template/themes/material/header.ut
@@ -46,7 +46,7 @@
{% endif %}
<script src="{{ dispatcher.build_url('admin/translations', dispatcher.lang) }}"></script>
<script src="{{ resource }}/cbi.js"></script>
-<title>{{ striptags(`${boardinfo.hostname ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} | LuCI</title>
+<title>{{ striptags(`${boardinfo.hostname + ' | ' ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} LuCI</title>
{% if (css): %}
<style title="text/css">{{ css }}</style>
{% 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 @@
<link rel="icon" href="{{ media }}/logo.svg" sizes="any">
<script src="{{ dispatcher.build_url('admin/translations', dispatcher.lang) }}"></script>
<script src="{{ resource }}/cbi.js"></script>
-<title>{{ striptags(`${boardinfo.hostname ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} | LuCI</title>
+<title>{{ striptags(`${boardinfo.hostname + ' | ' ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} LuCI</title>
{% if (css): %}
<style title="text/css">{{ css }}</style>
{% 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 @@
<script src="{{ dispatcher.build_url('admin/translations', dispatcher.lang) }}"></script>
<script src="{{ resource }}/cbi.js"></script>
-<title>{{ striptags(`${boardinfo.hostname ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} | LuCI</title>
+<title>{{ striptags(`${boardinfo.hostname + ' | ' ?? '?'}${dispatched?.title ? `${_(dispatched.title)} | ` : ''}`) }} LuCI</title>
</head>
<body class="lang_{{ dispatcher.lang }}" data-page="{{ entityencode(join('-', ctx.request_path), true) }}">