]> git.ipfire.org Git - people/jschlag/pbs.git/commitdiff
Forgot to add load progress bar template.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Dec 2012 12:09:48 +0000 (13:09 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Dec 2012 12:09:48 +0000 (13:09 +0100)
data/templates/modules/builders/load.html [new file with mode: 0644]

diff --git a/data/templates/modules/builders/load.html b/data/templates/modules/builders/load.html
new file mode 100644 (file)
index 0000000..f5965d8
--- /dev/null
@@ -0,0 +1,21 @@
+<div class="well well-white">
+       <h5>{{ _("Current load of the build cluster") }}</h5>
+
+       <div class="row-fluid">
+               <div class="span10">
+                       <div class="progress progress-striped active">
+                               {% if load >= 90 %}
+                                       <div class="bar bar-danger" style="width: {{ "%.2f%%" % load }};"></div>
+                               {% elif load >= 50 %}
+                                       <div class="bar bar-warning" style="width: {{ "%.2f%%" % load }};"></div>
+                               {% else %}
+                                       <div class="bar bar-success" style="width: {{ "%.2f%%" % load }};"></div>
+                               {% end %}
+                       </div>
+               </div>
+
+               <div class="span2">
+                       <p class="lead ac">{{ "%.1f%%" % load }}</p>
+               </div>
+       </div>
+</div>