keep help page at a readable width
authorGreg Price <price@mit.edu>
Tue, 22 Apr 2008 03:38:55 +0000 (23:38 -0400)
committerGreg Price <price@mit.edu>
Tue, 22 Apr 2008 03:38:55 +0000 (23:38 -0400)
svn path=/trunk/packages/sipb-xen-www/; revision=445

code/static/layout.css
code/templates/help.tmpl
code/templates/skeleton.tmpl

index 1694de7..d579a93 100644 (file)
@@ -24,3 +24,7 @@ body {
     border-radius: .4em;
     background: #fff;
 }
+
+body.help {
+    max-width: 50em;
+}
index 055f75c..d6f0768 100644 (file)
@@ -1,6 +1,8 @@
 #from skeleton import skeleton
 #extends skeleton
 
+#attr pageclass = 'help'
+
 #def title
 #if len($subjects) == 1
 Help on $subjects[0]
index f3983ef..e68c819 100644 (file)
@@ -29,7 +29,11 @@ function helppopup(name){
 }
 </script>
 </head>
-<body id="body">
+<body id="body"
+#if hasattr($self, 'pageclass'):
+  class="$pageclass"
+#end if
+  >
 
 #if False
 <div>