From aeb1c372bd51f751fa9defebaa82d33e8eec0680 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 19 Jul 2008 15:59:00 +0000 Subject: [PATCH] Improved browser title --- themes/fledermaus/luasrc/view/themes/fledermaus/header.htm | 5 +++-- themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm index cecdb1e7d..76b0a3da0 100644 --- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm +++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm @@ -20,6 +20,7 @@ local category = request[1] local tree = luci.dispatcher.node() local cattree = category and luci.dispatcher.node(category) local node = luci.dispatcher.context.dispatched +local hostname = luci.sys.hostname() local c = tree for i,r in ipairs(request) do @@ -40,7 +41,7 @@ require("luci.http").prepare_content("text/html") <% if node and node.css then %><% end %> - LuCI - Lua Configuration Interface - <%=(node and node.title)%> + <%=hostname%> - <%=(node and node.title)%> - LuCI
<%=luci.config.brand.title%>
diff --git a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm index df31154c0..3cd2b1af2 100644 --- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm @@ -20,6 +20,7 @@ local category = request[1] local tree = luci.dispatcher.node() local cattree = category and luci.dispatcher.node(category) local node = luci.dispatcher.context.dispatched +local hostname = luci.sys.hostname() local c = tree for i,r in ipairs(request) do @@ -42,7 +43,7 @@ require("luci.http").prepare_content("text/html") <% if node and node.css then %><% end %> - LuCI - Lua Configuration Interface - <%=(node and node.title)%> + <%=hostname%> - <%=(node and node.title)%> - LuCI