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

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

Allow pages to specify extra header elements

File size: 2.0 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  <base href="${cherrypy.request.base}" />
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/prototype.js"></script>
13  <script type="text/javascript">
14var helpWin = null;
15function closeWin(){
16        if (helpWin != null){
17                if(!helpWin.closed)
18                        helpWin.close();
19        }
20}
21
22function helppopup(name){
23   closeWin()
24   helpWin = window.open("help?simple=true&subject="+encodeURIComponent(name), "Help",
25"status, height = 300, width = 400");
26   if (window.focus){helpWin.focus();}
27   return false;
28}
29</script>
30${self.header_extra()}
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>.</p>
53% endif
54
55<ul class="navigation">
56<li><a href="list">List</a></li>
57% if machine:
58<li><a href="machine/${machine.machine_id}">Info</a></li>
59<li><a href="machine/${machine.machine_id}/vnc">Console</a></li>
60% endif
61<li><a href="help">Help</a></li>
62</ul>
63
64% endif
65
66<div id="result" class="result">
67% if result:
68${result}
69% endif
70</div>
71
72% if not simple:
73<h1>${self.title()} &mdash; XVM</h1>
74% endif
75${next.body()}
76% if not simple:
77<hr />
78Questions? Contact <a href="mailto:xvm@mit.edu">xvm@mit.edu</a>.
79% endif
80</body>
81</html>
82
83<%def name="title()">
84XVM
85</%def>
86
87<%def name="header_extra()">
88</%def>
Note: See TracBrowser for help on using the repository browser.