]> git.ipfire.org Git - ipfire.org.git/blobdiff - templates/modules/stasy-table.html
Move everything to the root of the repository.
[ipfire.org.git] / templates / modules / stasy-table.html
diff --git a/templates/modules/stasy-table.html b/templates/modules/stasy-table.html
new file mode 100644 (file)
index 0000000..d8ab9f5
--- /dev/null
@@ -0,0 +1,18 @@
+<table class="table table-fireinfo">
+       {% for k, v in items %}
+               <tr>
+                       <td class="key">
+                               {% if flags %}
+                                       <img src="{{ static_url("images/flags/%s.png" % k) }}" />
+                               {% end %}
+                               {{ k }}
+                       </td>
+                       <td class="bar">
+                               <div class="progress">
+                                       <div class="bar" style="{{ "width: %.2f%%" % v }}"></div>
+                               </div>
+                       </td>
+                       <td class="val">{{ "%.2f" % v }}%</td>
+               </tr>
+       {% end %}
+</table>