Add graphs of network usage by VMs.
[invirt/packages/invirt-web.git] / code / templates / skeleton.mako
1 <%page expression_filter="h"/>
2 <%namespace name="fn" file="functions.mako" inheritable="True"/>
3 <!DOCTYPE html
4 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6 <html>
7 <head><title>${self.title()} &mdash; XVM</title>
8   <base href="${cherrypy.request.base}${"/admin/" if cherrypy.request.state.isadmin else ""}" />
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" />
12   <script type="text/javascript" src="/static/nc.js"></script>
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.attr, 'pageclass'):
34   class="${self.attr.pageclass}"
35 % endif
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 % endif
43
44 % if error_text is not UNDEFINED:
45 <div id="err">
46 <p>STDERR:</p><pre>${error_text}</pre>
47 </div>
48 % endif
49
50 % if not simple:
51 % if cherrypy.request.login:
52 <p class="loggedin">Welcome, <span class="name">${cherrypy.request.login}</span>.
53 % if cherrypy.request.state.isadmin:
54 You are currently authenticated as an administrator.
55 % endif
56 </p>
57 % endif
58
59 <ul class="navigation">
60 <li><a href="list">List</a></li>
61 % if machine:
62 <li><a href="machine/${machine.machine_id}">Info</a></li>
63 <li><a href="machine/${machine.machine_id}/vnc">Console</a></li>
64 % endif
65 <li><a href="help">Help</a></li>
66 </ul>
67
68 % endif
69
70 % if not simple:
71 <h1>${self.title()} &mdash; XVM</h1>
72 % endif
73
74 % if result:
75 <div id="result" class="result">
76 ${result}
77 </div>
78 % endif
79
80 ${next.body()}
81 % if not simple:
82 <hr />
83 Questions? Contact <a href="mailto:xvm@mit.edu">xvm@mit.edu</a>.
84 % endif
85 </body>
86 </html>
87
88 <%def name="title()">
89 XVM
90 </%def>