Changeset 2666
- Timestamp:
- Dec 20, 2009, 9:44:03 PM (15 years ago)
- Location:
- package_branches/invirt-web/cherrypy-rebased/code/templates
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/templates/skeleton.mako
r2665 r2666 1 #from functions import functions 2 #extends functions 3 4 #def full_body 1 <%page expression_filter="h"/> 5 2 <!DOCTYPE html 6 3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 7 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 8 5 <html> 9 <head><title>$ title— XVM</title>6 <head><title>${self.title()} — XVM</title> 10 7 <link href="static/favicon.ico" type="image/x-icon" rel="shortcut icon"> 11 8 <link rel="stylesheet" href="static/style.css" type="text/css" /> … … 31 28 </head> 32 29 <body id="body" 33 #if hasattr($self, 'pageclass'):34 class="$ pageclass"35 #endif30 % if hasattr(self.attr, 'pageclass'): 31 class="${self.attr.pageclass}" 32 % endif 36 33 > 37 34 38 #if False 35 % if False: 39 36 <div> 40 37 <p>We are in the process of modifying the service. Things likely will not work.</p> 41 38 </div> 42 #endif39 % endif 43 40 41 % if error_text is not UNDEFINED: 44 42 <div id="err"> 45 #if $varExists('error_text') 46 <p>STDERR:</p><pre>$error_text</pre> 47 #end if 43 <p>STDERR:</p><pre>${error_text}</pre> 48 44 </div> 45 % endif 49 46 50 #if not $varExists('simple') or not $simple 51 <p class="loggedin">Welcome, <span class="name">$user</span>.</p> 47 % if not simple: 48 % if user: 49 <p class="loggedin">Welcome, <span class="name">${user}</span>.</p> 50 % endif 52 51 53 52 <ul class="navigation"> 54 53 <li><a href="list">List</a></li> 55 #if $varExists('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 #endif54 % if machine: 55 <li><a href="info?machine_id=${machine.machine_id}">Info</a></li> 56 <li><a href="vnc?machine_id=${machine.machine_id}">Console</a></li> 57 % endif 59 58 <li><a href="help">Help</a></li> 60 59 </ul> 61 #end if 60 61 % endif 62 62 63 <div id="result" class="result"> 63 #if $varExists('result') 64 $ result65 #endif64 % if result: 65 ${result} 66 % endif 66 67 </div> 67 68 68 #if not $varExists('simple') or not $simple 69 <h1>$title — XVM</h1> 70 #end if 71 #filter None 72 $body 73 #end filter 74 #if not $varExists('simple') or not $simple 69 % if not simple: 70 <h1>${self.title()} — XVM</h1> 71 % endif 72 ${next.body()} 73 % if not simple: 75 74 <hr /> 76 75 Questions? Contact <a href="mailto:xvm@mit.edu">xvm@mit.edu</a>. 77 #endif76 % endif 78 77 </body> 79 78 </html> 80 #end def 79 80 <%def name="title()"> 81 XVM 82 </%def>
Note: See TracChangeset
for help on using the changeset viewer.