projects
/
invirt/packages/invirt-web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d3e746a
)
Show a label for the CPU graph
0.1.16
author
Quentin Smith
<quentin@mit.edu>
Wed, 29 Dec 2010 17:47:30 +0000
(12:47 -0500)
committer
Quentin Smith
<quentin@mit.edu>
Wed, 29 Dec 2010 17:47:30 +0000
(12:47 -0500)
code/templates/info.mako
patch
|
blob
|
history
diff --git
a/code/templates/info.mako
b/code/templates/info.mako
index
9628e70
..
6d02f06
100644
(file)
--- a/
code/templates/info.mako
+++ b/
code/templates/info.mako
@@
-11,12
+11,12
@@
Info on ${machine.name}
% for key, value in fields:
<tr><td>${key}:</td><td>${value}</td></tr>
% endfor
% for key, value in fields:
<tr><td>${key}:</td><td>${value}</td></tr>
% endfor
+ % if on:
+ % if 'monitoring' in config and len(config.monitoring) and 'baseuri' in config.monitoring[0]:
+ <tr><td>CPU history:</td><td><img src="${config.monitoring[0].baseuri}usage.cgi?type=cpu;uuid=${machine.uuid}" alt="Domain CPU usage" /></td></tr>
+ % endif
+ % endif
</table>
</table>
-% if on:
- % if 'monitoring' in config and len(config.monitoring) and 'baseuri' in config.monitoring[0]:
- <img src="${config.monitoring[0].baseuri}usage.cgi?type=cpu;uuid=${machine.uuid}" alt="Domain CPU usage" />
- % endif
-% endif
</%def>
<%def name="commands()">
</%def>
<%def name="commands()">