aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorBradley Taunt <git@btxx.org>2026-07-31 09:24:41 -0400
committerBradley Taunt <git@btxx.org>2026-07-31 09:24:41 -0400
commitb80acd6f3a97151488f9b47219913c5c67639fa7 (patch)
treea69d1ee9c55d0486bc4d435127d767088afed76c /index.html
parent4836f2630d56656fcca65a34eaf9dc28d89d05be (diff)
Return to NFS setup, include styling for size meter for members table
Diffstat (limited to 'index.html')
-rw-r--r--index.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.html b/index.html
index 41cf02a..aae37f6 100644
--- a/index.html
+++ b/index.html
@@ -24,7 +24,11 @@ summary: Listing all web pages under 1MB in total size
</thead>
<tbody id="container">
{% for item in websites %}
- <tr>
+ {% assign pct = item.size | times: 100.0 | divided_by: 1024.0 %}
+ {% if item.size < 410 %}{% assign c = "lightgreen" %}
+ {% elsif item.size < 717 %}{% assign c = "orange" %}
+ {% else %}{% assign c = "crimson" %}{% endif %}
+ <tr style="--fill:{{ item.size | times: 100.0 | divided_by: 1024.0 }}%;--c:{{ c }}">
<td>
{% if item.http == true %}
<a href="http://{{ item.domain }}">