]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - www/templates/modules/stasy-table.html
Website update.
[people/shoehn/ipfire.org.git] / www / templates / modules / stasy-table.html
index 267179a09ceacd41a3d0936a33ec5b9c94f965df..d8ab9f51643a68fe2718cbe3b0d5008b34c1aebc 100644 (file)
@@ -1,8 +1,18 @@
-<table>
+<table class="table table-fireinfo">
        {% for k, v in items %}
                <tr>
-                       <td>{{ k }}</td>
-                       <td>{{ "%.2f" % v }}%</td>
+                       <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>