[2666] | 1 | <%page expression_filter="h"/> |
---|
[2667] | 2 | <%namespace name="fn" file="functions.mako" inheritable="True"/> |
---|
[205] | 3 | <!DOCTYPE html |
---|
| 4 | PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
| 5 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
[113] | 6 | <html> |
---|
[2666] | 7 | <head><title>${self.title()} — XVM</title> |
---|
[2678] | 8 | <base href="${cherrypy.request.base}" /> |
---|
[184] | 9 | <link href="static/favicon.ico" type="image/x-icon" rel="shortcut icon"> |
---|
| 10 | <link rel="stylesheet" href="static/style.css" type="text/css" /> |
---|
| 11 | <link rel="stylesheet" href="static/layout.css" type="text/css" media="screen" /> |
---|
[205] | 12 | <script type="text/javascript" src="static/prototype.js"></script> |
---|
[139] | 13 | <script type="text/javascript"> |
---|
| 14 | var helpWin = null; |
---|
| 15 | function closeWin(){ |
---|
| 16 | if (helpWin != null){ |
---|
| 17 | if(!helpWin.closed) |
---|
| 18 | helpWin.close(); |
---|
| 19 | } |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | function helppopup(name){ |
---|
| 23 | closeWin() |
---|
[153] | 24 | helpWin = window.open("help?simple=true&subject="+encodeURIComponent(name), "Help", |
---|
[139] | 25 | "status, height = 300, width = 400"); |
---|
| 26 | if (window.focus){helpWin.focus();} |
---|
| 27 | return false; |
---|
| 28 | } |
---|
| 29 | </script> |
---|
| 30 | </head> |
---|
[445] | 31 | <body id="body" |
---|
[2666] | 32 | % if hasattr(self.attr, 'pageclass'): |
---|
| 33 | class="${self.attr.pageclass}" |
---|
| 34 | % endif |
---|
[445] | 35 | > |
---|
[205] | 36 | |
---|
[2666] | 37 | % if False: |
---|
[235] | 38 | <div> |
---|
| 39 | <p>We are in the process of modifying the service. Things likely will not work.</p> |
---|
| 40 | </div> |
---|
[2666] | 41 | % endif |
---|
[235] | 42 | |
---|
[2666] | 43 | % if error_text is not UNDEFINED: |
---|
[205] | 44 | <div id="err"> |
---|
[2666] | 45 | <p>STDERR:</p><pre>${error_text}</pre> |
---|
[205] | 46 | </div> |
---|
[2666] | 47 | % endif |
---|
[205] | 48 | |
---|
[2666] | 49 | % if not simple: |
---|
[2677] | 50 | % if cherrypy.request.login: |
---|
| 51 | <p class="loggedin">Welcome, <span class="name">${cherrypy.request.login}</span>.</p> |
---|
[2666] | 52 | % endif |
---|
[205] | 53 | |
---|
[416] | 54 | <ul class="navigation"> |
---|
| 55 | <li><a href="list">List</a></li> |
---|
[2666] | 56 | % if machine: |
---|
[2678] | 57 | <li><a href="machine/${machine.machine_id}">Info</a></li> |
---|
| 58 | <li><a href="machine/${machine.machine_id}/vnc">Console</a></li> |
---|
[2666] | 59 | % endif |
---|
[618] | 60 | <li><a href="help">Help</a></li> |
---|
[417] | 61 | </ul> |
---|
[2666] | 62 | |
---|
| 63 | % endif |
---|
| 64 | |
---|
[207] | 65 | <div id="result" class="result"> |
---|
[2666] | 66 | % if result: |
---|
| 67 | ${result} |
---|
| 68 | % endif |
---|
[207] | 69 | </div> |
---|
[205] | 70 | |
---|
[2666] | 71 | % if not simple: |
---|
| 72 | <h1>${self.title()} — XVM</h1> |
---|
| 73 | % endif |
---|
| 74 | ${next.body()} |
---|
| 75 | % if not simple: |
---|
[113] | 76 | <hr /> |
---|
[543] | 77 | Questions? Contact <a href="mailto:xvm@mit.edu">xvm@mit.edu</a>. |
---|
[2666] | 78 | % endif |
---|
[113] | 79 | </body> |
---|
| 80 | </html> |
---|
[2666] | 81 | |
---|
| 82 | <%def name="title()"> |
---|
| 83 | XVM |
---|
| 84 | </%def> |
---|