X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/6698c203874b6b49fe661b2f598a905953fb2004..215d45efd45e47073a2f4238e4e3cef2dd342dc9:/code/templates/info.mako
diff --git a/code/templates/info.mako b/code/templates/info.mako
index 998b73e..1fb4284 100644
--- a/code/templates/info.mako
+++ b/code/templates/info.mako
@@ -5,12 +5,23 @@
Info on ${machine.name}
%def>
+%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:
${key}: | ${value} |
% endfor
+ % if on:
+ % if 'monitoring' in config and len(config.monitoring) and 'baseuri' in config.monitoring[0]:
+ CPU history: | |
+ % endif
+ % endif
%def>
@@ -45,7 +56,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))}
%def>