source: package_branches/invirt-web/ajaxterm-rebased/code/templates/skeleton.mako @ 2919

Last change on this file since 2919 was 2751, checked in by broder, 15 years ago

Add terminal page

File size: 2.2 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>
[2690]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/prototype.js"></script>
[139]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()
[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>
[2750]30${self.header_extra()}
[139]31</head>
[445]32<body id="body"
[2666]33% if hasattr(self.attr, 'pageclass'):
34  class="${self.attr.pageclass}"
35% endif
[445]36  >
[205]37
[2666]38% if False:
[235]39<div>
40<p>We are in the process of modifying the service.  Things likely will not work.</p>
41</div>
[2666]42% endif
[235]43
[2666]44% if error_text is not UNDEFINED:
[205]45<div id="err">
[2666]46<p>STDERR:</p><pre>${error_text}</pre>
[205]47</div>
[2666]48% endif
[205]49
[2666]50% if not simple:
[2677]51% if cherrypy.request.login:
[2690]52<p class="loggedin">Welcome, <span class="name">${cherrypy.request.login}</span>.
53% if cherrypy.request.state.isadmin:
54You are currently authenticated as an administrator.
[2666]55% endif
[2690]56</p>
57% endif
[205]58
[416]59<ul class="navigation">
60<li><a href="list">List</a></li>
[2666]61% if machine:
[2678]62<li><a href="machine/${machine.machine_id}">Info</a></li>
63<li><a href="machine/${machine.machine_id}/vnc">Console</a></li>
[2751]64<li><a href="machine/${machine.machine_id}/terminal">Terminal</a></li>
[2666]65% endif
[618]66<li><a href="help">Help</a></li>
[417]67</ul>
[2666]68
69% endif
70
[207]71<div id="result" class="result">
[2666]72% if result:
73${result}
74% endif
[207]75</div>
[205]76
[2666]77% if not simple:
78<h1>${self.title()} &mdash; XVM</h1>
79% endif
80${next.body()}
81% if not simple:
[113]82<hr />
[543]83Questions? Contact <a href="mailto:xvm@mit.edu">xvm@mit.edu</a>.
[2666]84% endif
[113]85</body>
86</html>
[2666]87
88<%def name="title()">
89XVM
90</%def>
[2750]91
92<%def name="header_extra()">
93</%def>
Note: See TracBrowser for help on using the repository browser.