1 | #from functions import functions |
---|
2 | #extends functions |
---|
3 | |
---|
4 | #def full_body |
---|
5 | <!DOCTYPE html |
---|
6 | PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
7 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
8 | <html> |
---|
9 | <head><title>$title — 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"> |
---|
15 | var helpWin = null; |
---|
16 | function closeWin(){ |
---|
17 | if (helpWin != null){ |
---|
18 | if(!helpWin.closed) |
---|
19 | helpWin.close(); |
---|
20 | } |
---|
21 | } |
---|
22 | |
---|
23 | function 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 | #if hasattr($self, 'pageclass'): |
---|
34 | class="$pageclass" |
---|
35 | #end if |
---|
36 | > |
---|
37 | |
---|
38 | #if False |
---|
39 | <div> |
---|
40 | <p>We are in the process of modifying the service. Things likely will not work.</p> |
---|
41 | </div> |
---|
42 | #end if |
---|
43 | |
---|
44 | <div id="err"> |
---|
45 | #if $varExists('error_text') |
---|
46 | <p>STDERR:</p><pre>$error_text</pre> |
---|
47 | #end if |
---|
48 | </div> |
---|
49 | |
---|
50 | #if not $varExists('simple') or not $simple |
---|
51 | <p class="loggedin">Welcome, <span class="name">$user</span>.</p> |
---|
52 | |
---|
53 | <ul class="navigation"> |
---|
54 | <li><a href="list">List</a></li> |
---|
55 | #if $varExists('machine') |
---|
56 | <li><a href="info?machine_id=$machine.machine_id">Info</a></li> |
---|
57 | <li><a href="vnc?machine_id=$machine.machine_id">Console</a></li> |
---|
58 | #end if |
---|
59 | <li><a href="help">Help</a></ul></li> |
---|
60 | </ul> |
---|
61 | #end if |
---|
62 | |
---|
63 | <div id="result" class="result"> |
---|
64 | #if $varExists('result') |
---|
65 | $result |
---|
66 | #end if |
---|
67 | </div> |
---|
68 | |
---|
69 | #if not $varExists('simple') or not $simple |
---|
70 | <h1>$title — SIPB Virtual Servers</h1> |
---|
71 | #end if |
---|
72 | $body |
---|
73 | #if not $varExists('simple') or not $simple |
---|
74 | <hr /> |
---|
75 | Questions? Contact <a href="mailto:sipb-xen@mit.edu">sipb-xen@mit.edu</a>. |
---|
76 | #end if |
---|
77 | </body> |
---|
78 | </html> |
---|
79 | #end def |
---|