source: trunk/packages/sipb-xen-www/code/templates/skeleton.tmpl @ 424

Last change on this file since 424 was 422, checked in by price, 17 years ago

more and better titles

  • Title with <h1> on VM list
  • append 'SIPB Virtual Servers' to each title
  • only write title once per page
File size: 1.9 KB
Line 
1#from functions import functions
2#extends functions
3
4#def full_body
5<!DOCTYPE html
6PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
7"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8<html>
9<head><title>$title &mdash; SIPB Virtual Servers</title>
10  <link href="static/favicon.ico" type="image/x-icon" rel="shortcut icon">
11  <link rel="stylesheet" href="static/style.css" type="text/css" />
12  <link rel="stylesheet" href="static/layout.css" type="text/css" media="screen" />
13  <script type="text/javascript" src="static/prototype.js"></script>
14  <script type="text/javascript">
15var helpWin = null;
16function closeWin(){
17        if (helpWin != null){
18                if(!helpWin.closed)
19                        helpWin.close();
20        }
21}
22
23function helppopup(name){
24   closeWin()
25   helpWin = window.open("help?simple=true&subject="+encodeURIComponent(name), "Help",
26"status, height = 300, width = 400");
27   if (window.focus){helpWin.focus();}
28   return false;
29}
30</script>
31</head>
32<body id="body">
33
34#if False
35<div>
36<p>We are in the process of modifying the service.  Things likely will not work.</p>
37</div>
38#end if
39
40<div id="err">
41#if $varExists('error_text')
42<p>STDERR:</p><pre>$error_text</pre>
43#end if
44</div>
45
46#if not $varExists('simple') or not $simple
47<p class="loggedin">Welcome, <span class="name">$user</span>.</p>
48
49<ul class="navigation">
50<li><a href="list">List</a></li>
51#if $varExists('machine')
52<li><a href="info?machine_id=$machine.machine_id">Info</a></li>
53<li><a href="vnc?machine_id=$machine.machine_id">Console</a></li>
54#end if
55<li><a href="help">Help</a></ul></li>
56</ul>
57#end if
58
59<div id="result" class="result">
60#if $varExists('result')
61$result
62#end if
63</div>
64
65#if not $varExists('simple') or not $simple
66<h1>$title &mdash; SIPB Virtual Servers</h1>
67#end if
68$body
69#if not $varExists('simple') or not $simple
70<hr />
71Questions? Contact <a href="mailto:sipb-xen@mit.edu">sipb-xen@mit.edu</a>.
72#end if
73</body>
74</html>
75#end def
Note: See TracBrowser for help on using the repository browser.