X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/a9679b94c0821c37b6fecabfc8839b0da9453157..44bf62642b9d84f1309e0fc257177259450e6d2a:/code/templates/info.mako diff --git a/code/templates/info.mako b/code/templates/info.mako index 5423f3d..7bec8fd 100644 --- a/code/templates/info.mako +++ b/code/templates/info.mako @@ -5,6 +5,12 @@ Info on ${machine.name} +%if os.path.exists("/etc/invirt/motd.html"): +
+

${open('/etc/invirt/motd.html').read()|n}

+
+%endif + <%def name="infoTable()">

Info

@@ -14,6 +20,7 @@ Info on ${machine.name} % if on: % if 'monitoring' in config and len(config.monitoring) and 'baseuri' in config.monitoring[0]: + % endif % endif
CPU history:Domain CPU usage
Network history:Domain network usage
@@ -40,6 +47,16 @@ Info on ${machine.name} % endif + % if renumber: +
+

This machine's IP address is slated to be changed. Your machine's new IP address, netmask, and gateway are shown above. Please configure your machine for DHCP or update the machine's configuration and then press this button:

+ % if on: + ${command_button("Power cycle and renumber", "renumber", extra='''onclick="return confirm('Are you sure that you want to power this VM off and on again?');"''')} + % else: + ${command_button("Renumber", "renumber")} + % endif +
+ % endif
% if on: ${command_button("Power off", "destroy")} @@ -50,7 +67,7 @@ Info on ${machine.name} % endif
- ${command_button("Delete VM", "delete", extra="onclick=\"return confirm('Are you sure that you want to delete this VM (\\\'" + machine.name + "\\\')?');\"")} + ${command_button("Delete VM", "delete", extra='''onclick="return confirm('Are you sure that you want to delete this VM (\\\'%s\\\')?');"''' % (machine.name))}