Index: appengine/monorail/templates/project/quota-bar.ezt |
diff --git a/appengine/monorail/templates/project/quota-bar.ezt b/appengine/monorail/templates/project/quota-bar.ezt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e89a6e2b11b6cefca27f4bfb05517f62ff46cf41 |
--- /dev/null |
+++ b/appengine/monorail/templates/project/quota-bar.ezt |
@@ -0,0 +1,22 @@ |
+[# Display a little HTML bar and labels. This is not really a bar chart. |
+ For comparison, see the bars in the top half of |
+ https://www.google.com/accounts/ManageStorage |
+ |
+arg0: an EZTItem with quota info for one component. |
+] |
+ |
+<table border="0" cellpadding="0" cellspacing="0"> |
+ <tr> |
+ <td style="width:200px"> |
+ <table border="0" cellpadding="0" cellspacing="0" style="width:100%; border:1px solid #345BA6"> |
+ <tr> |
+ <td style="background:#345BA6; width:[arg0.used_percent]%"> </td> |
+ <td style="background:#EBF0FA; width:[arg0.avail_percent]%"> </td> |
+ </tr> |
+ </table> |
+ </td> |
+ <td style="padding-left:.7em"> |
+ [arg0.used] ([arg0.used_percent]%) in use |
+ </td> |
+ </tr> |
+</table> |