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

Last change on this file since 2669 was 2667, checked in by broder, 15 years ago

Port functions to Mako

File size: 1.9 KB
RevLine 
[2666]1<%page expression_filter="h"/>
[2667]2<%namespace name="fn" file="functions.mako" inheritable="True"/>
[205]3<!DOCTYPE html
4PUBLIC "-//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()} &mdash; XVM</title>
[184]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" />
[205]11  <script type="text/javascript" src="static/prototype.js"></script>
[139]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()
[153]23   helpWin = window.open("help?simple=true&subject="+encodeURIComponent(name), "Help",
[139]24"status, height = 300, width = 400");
25   if (window.focus){helpWin.focus();}
26   return false;
27}
28</script>
29</head>
[445]30<body id="body"
[2666]31% if hasattr(self.attr, 'pageclass'):
32  class="${self.attr.pageclass}"
33% endif
[445]34  >
[205]35
[2666]36% if False:
[235]37<div>
38<p>We are in the process of modifying the service.  Things likely will not work.</p>
39</div>
[2666]40% endif
[235]41
[2666]42% if error_text is not UNDEFINED:
[205]43<div id="err">
[2666]44<p>STDERR:</p><pre>${error_text}</pre>
[205]45</div>
[2666]46% endif
[205]47
[2666]48% if not simple:
49% if user:
50<p class="loggedin">Welcome, <span class="name">${user}</span>.</p>
51% endif
[205]52
[416]53<ul class="navigation">
54<li><a href="list">List</a></li>
[2666]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
[618]59<li><a href="help">Help</a></li>
[417]60</ul>
[2666]61
62% endif
63
[207]64<div id="result" class="result">
[2666]65% if result:
66${result}
67% endif
[207]68</div>
[205]69
[2666]70% if not simple:
71<h1>${self.title()} &mdash; XVM</h1>
72% endif
73${next.body()}
74% if not simple:
[113]75<hr />
[543]76Questions? Contact <a href="mailto:xvm@mit.edu">xvm@mit.edu</a>.
[2666]77% endif
[113]78</body>
79</html>
[2666]80
81<%def name="title()">
82XVM
83</%def>
Note: See TracBrowser for help on using the repository browser.