]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/header
set base to allow relative urls to work without leading slash.
[maypole.git] / templates / factory / header
index 90274d48c76bc14300ad0357b0a2b98096c4acc8..6b706efa2c9c120c03969078f51f7c83fd4e716b 100644 (file)
@@ -1,20 +1,19 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\r
-<head>\r
-        <title>[% config.application_name || "A poorly configured Maypole application" %]</title>\r
-       <meta http-equiv="Content-Language" content="en" />\r
-       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
-       <link title="Maypole Default" href="/maypole.css" type="text/css" rel="stylesheet" />\r
-       <script type="text/javascript">\r
-<!--\r
-function go() {\r
-    box = document.forms[-1].navi;\r
-    destination = box.options[box.selectedIndex].value;\r
-    if (box.options[box.selectedIndex].class == 'redirect')\r
-        location.href = destination;\r
-}\r
-// -->\r
-</script>\r
-</head>\r
-<body>\r
-       <div class="content">
\ No newline at end of file
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+    <head>
+        <title>
+            [%
+              title || config.application_name ||
+                "A poorly configured Maypole application"
+            %]
+        </title>
+        <meta http-equiv="Content-Type" content="text/html; charset=[% 
+           request.document_encoding
+       %]"/>
+       <base href="[% config.uri_base%]"/>
+        <link title="Maypole" href="/maypole.css" type="text/css"
+            rel="stylesheet"/>
+   </head>
+    <body>
+        <div class="content">