themes: Fixed title-tag in case we don't serve a dispatched node

This commit is contained in:
Steven Barth 2008-07-19 16:59:33 +00:00
parent 040efb954f
commit b8dc7fdfa3
2 changed files with 2 additions and 2 deletions

View file

@ -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">

View file

@ -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">