X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/d3e746ad10f7dc4e54cfd382b4825e77b2916186..a3ce9fc07f5982d9bf2cc5f080e3998782b90e4f:/code/templates/info.mako?ds=sidebyside
diff --git a/code/templates/info.mako b/code/templates/info.mako
index 9628e70..e83fef1 100644
--- a/code/templates/info.mako
+++ b/code/templates/info.mako
@@ -11,12 +11,12 @@ Info on ${machine.name}
% 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: | ![Domain CPU usage](${config.monitoring[0].baseuri}usage.cgi?type=cpu;uuid=${machine.uuid}) |
+ % endif
+ % endif
-% if on:
- % if 'monitoring' in config and len(config.monitoring) and 'baseuri' in config.monitoring[0]:
-
- % endif
-% endif
%def>
<%def name="commands()">
@@ -50,7 +50,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>