summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-19 16:59:33 +0000
committerSteven Barth <steven@midlink.org>2008-07-19 16:59:33 +0000
commitb8dc7fdfa3727f204bddd7af56859995709ffb89 (patch)
treee6bded10355e7f577c57030be6076a41018bea14
parent040efb954fd88f9c365dc9e55a6865b6da271704 (diff)
themes: Fixed title-tag in case we don't serve a dispatched node
-rw-r--r--themes/fledermaus/luasrc/view/themes/fledermaus/header.htm2
-rw-r--r--themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm2
2 files changed, 2 insertions, 2 deletions
diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
index 76b0a3da0..5abe5d4ee 100644
--- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
+++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
@@ -41,7 +41,7 @@ require("luci.http").prepare_content("text/html")
<% if node and node.css then %><link rel="stylesheet" type="text/css" href="<%=resource%>/<%=node.css%>" /><% end %>
<meta http-equiv="content-type" content="text/xhtml+xml; charset=utf-8" />
<meta http-equiv="content-script-type" content="text/javascript" />
- <title><%=hostname%> - <%=(node and node.title)%> - LuCI</title>
+ <title><%= hostname .. ( (node and node.title) and ' - ' .. node.title or '') %> - LuCI</title>
</head>
<body>
<div id="header">
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 9feb8c020..500a73bad 100644
--- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
+++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
@@ -43,7 +43,7 @@ require("luci.http").prepare_content("text/html")
<% if node and node.css then %><link rel="stylesheet" type="text/css" href="<%=resource%>/<%=node.css%>" /><% end %>
<meta http-equiv="content-type" content="text/xhtml+xml; charset=utf-8" />
<meta http-equiv="content-script-type" content="text/javascript" />
- <title><%= hostname .. ( node.title and ' - ' .. node.title or '') %> - LuCI</title>
+ <title><%= hostname .. ( (node and node.title) and ' - ' .. node.title or '') %> - LuCI</title>
<!--[if lt IE 7]>
<script type="text/javascript">