X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/d5c709a5a9d53bbff6fae1e3eab6e0a4acf294bf..215d45efd45e47073a2f4238e4e3cef2dd342dc9:/code/templates/info.mako?ds=inline diff --git a/code/templates/info.mako b/code/templates/info.mako index 5af29bb..1fb4284 100644 --- a/code/templates/info.mako +++ b/code/templates/info.mako @@ -5,12 +5,23 @@ Info on ${machine.name} +%if os.path.exists("/etc/invirt/motd.html"): +
+

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

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

Info

% for key, value in fields: % endfor + % if on: + % if 'monitoring' in config and len(config.monitoring) and 'baseuri' in config.monitoring[0]: + + % endif + % endif
${key}:${value}
CPU history:Domain CPU usage
@@ -26,26 +37,27 @@ Info on ${machine.name} VNC console not enabled; still booting? % endif % endif -
- - +<%def name="command_button(title, value, cdrom=False, extra='')"> + + + +% if cdrom: + Boot CD: ${self.fn.cdromList()} +% endif +
+
% if on: - - - + ${command_button("Power off", "destroy")} + ${command_button("Shutdown", "shutdown")} + ${command_button("Reboot", "reboot", cdrom=True)} % else: - + ${command_button("Power on", "create", cdrom=True)} % endif
- Boot CD: -${self.fn.cdromList()} -
-
- + ${command_button("Delete VM", "delete", extra='''onclick="return confirm('Are you sure that you want to delete this VM (\\\'%s\\\')?');"''' % (machine.name))}
- <%def name="modifyForm()"> @@ -57,8 +69,7 @@ ${self.fn.cdromList()} % if on: (To edit ram, disk size, or machine name, turn off the machine first.) % endif -
- +
Description:
Owner${self.fn.helppopup("Owner")}: