Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1774)

Unified Diff: appengine/monorail/templates/project/quota-bar.ezt

Issue 1868553004: Open Source Monorail (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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]%"> &nbsp; </td>
+ <td style="background:#EBF0FA; width:[arg0.avail_percent]%"> &nbsp; </td>
+ </tr>
+ </table>
+ </td>
+ <td style="padding-left:.7em">
+ [arg0.used] ([arg0.used_percent]%) in use
+ </td>
+ </tr>
+</table>

Powered by Google App Engine
This is Rietveld 408576698