source: package_branches/invirt-web/cherrypy/code/templates/skeleton.mako @ 2398

Last change on this file since 2398 was 2393, checked in by quentin, 15 years ago

Port functions to Mako

File size: 1.9 KB
Line 
1<%page expression_filter="h"/>
2<%namespace name="fn" file="functions.mako" inheritable="True"/>
3<!DOCTYPE html
4PUBLIC "-//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  <link href="static/favicon.ico" type="image/x-icon" rel="shortcut icon">
9  <link rel="stylesheet" href="static/style.css" type="text/css" />
10  <link rel="stylesheet" href="static/layout.css" type="text/css" media="screen" />
11  <script type="text/javascript" src="static/prototype.js"></script>
12  <script type="text/javascript">
13var helpWin = null;
14function closeWin(){
15        if (helpWin != null){
16                if(!helpWin.closed)
17                        helpWin.close();
18        }
19}
20
21function helppopup(name){
22   closeWin()
23   helpWin = window.open("help?simple=true&subject="+encodeURIComponent(name), "Help",
24"status, height = 300, width = 400");
25   if (window.focus){helpWin.focus();}
26   return false;
27}
28</script>
29</head>
30<body id="body"
31% if hasattr(self.attr, 'pageclass'):
32  class="${self.attr.pageclass}"
33% endif
34  >
35
36% if False:
37<div>
38<p>We are in the process of modifying the service.  Things likely will not work.</p>
39</div>
40% endif
41
42% if error_text is not UNDEFINED:
43<div id="err">
44<p>STDERR:</p><pre>${error_text}</pre>
45</div>
46% endif
47
48% if not simple:
49% if user:
50<p class="loggedin">Welcome, <span class="name">${user}</span>.</p>
51% endif
52
53<ul class="navigation">
54<li><a href="list">List</a></li>
55% if 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% endif
59<li><a href="help">Help</a></li>
60</ul>
61
62% endif
63
64<div id="result" class="result">
65% if result:
66${result}
67% endif
68</div>
69
70% if not simple:
71<h1>${self.title()} &mdash; XVM</h1>
72% endif
73${next.body()}
74% if not simple:
75<hr />
76Questions? Contact <a href="mailto:xvm@mit.edu">xvm@mit.edu</a>.
77% endif
78</body>
79</html>
80
81<%def name="title()">
82XVM
83</%def>
Note: See TracBrowser for help on using the repository browser.