]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/header
Maypole::Application supports Maypole::HTTPD (which needs a patch).
[maypole.git] / templates / factory / header
index bb1054fbdd62525890ee5be9893daeaa40dabbe8..5c8a592347bc7819f505c139bc261446074ede26 100644 (file)
@@ -4,24 +4,13 @@
     <head>
         <title>
             [%
-                config.application_name ||
+              title || config.application_name ||
                 "A poorly configured Maypole application"
             %]
         </title>
-        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-        <link title="Maypole" href="/maypole.css" type="text/css"
-            rel="stylesheet"/>
-        <script type="text/javascript">
-            <!--
-                function go()
-                {
-                    box = document.forms[-1].navi;
-                    destination = box.options[box.selectedIndex].value;
-                    if (box.options[box.selectedIndex].class == 'redirect')
-                        location.href = destination;
-                }
-            // -->
-        </script>
-    </head>
+        <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">