X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/d3e746ad10f7dc4e54cfd382b4825e77b2916186..019114e2aa0d96600a168cda53fc6f1365c57520:/code/templates/info.mako?ds=sidebyside diff --git a/code/templates/info.mako b/code/templates/info.mako index 9628e70..8ceb715 100644 --- a/code/templates/info.mako +++ b/code/templates/info.mako @@ -5,18 +5,25 @@ 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
Network history:Domain network usage
-% if on: - % if 'monitoring' in config and len(config.monitoring) and 'baseuri' in config.monitoring[0]: - Domain CPU usage - % endif -% endif <%def name="commands()"> @@ -50,7 +57,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?');"''')} + ${command_button("Delete VM", "delete", extra='''onclick="return confirm('Are you sure that you want to delete this VM (\\\'%s\\\')?');"''' % (machine.name))}