Ignore:
Timestamp:
Dec 20, 2009, 9:44:49 PM (15 years ago)
Author:
broder
Message:

Upgrade info page to Mako, and use REST-style URLs.

Location:
package_branches/invirt-web/cherrypy-rebased/code/templates
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy-rebased/code/templates/list.mako

    r2674 r2678  
    9696          </form>
    9797        </td>
    98         <td><a href="info?machine_id=${machine.machine_id}">${machine.name}</a></td>
     98        <td><a href="machine/${machine.machine_id}">${machine.name}</a></td>
    9999        <td>${machine.memory}M</td>
    100100        <td>${machine.owner}</td>
     
    112112        <td>\
    113113% if has_vnc[machine] == True:
    114 <a href="vnc?machine_id=${machine.machine_id}">Console</a>\
     114<a href="machine/${machine.machine_id}/vnc">Console</a>\
     115% elif has_vnc[machine] == 'ParaVM':
     116ParaVM${self.fn.helppopup("ParaVM Console")}
    115117% elif has_vnc[machine] != 'Off':
    116118${has_vnc[machine]}
  • package_branches/invirt-web/cherrypy-rebased/code/templates/skeleton.mako

    r2677 r2678  
    66<html>
    77<head><title>${self.title()} &mdash; XVM</title>
     8  <base href="${cherrypy.request.base}" />
    89  <link href="static/favicon.ico" type="image/x-icon" rel="shortcut icon">
    910  <link rel="stylesheet" href="static/style.css" type="text/css" />
     
    5455<li><a href="list">List</a></li>
    5556% 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>
     57<li><a href="machine/${machine.machine_id}">Info</a></li>
     58<li><a href="machine/${machine.machine_id}/vnc">Console</a></li>
    5859% endif
    5960<li><a href="help">Help</a></li>
Note: See TracChangeset for help on using the changeset viewer.