From f10ff43adb3f873b12ea68e342b38a8643512a2a Mon Sep 17 00:00:00 2001 From: Jonathan Carter Date: Wed, 7 Jan 2026 22:29:22 +0200 Subject: [PATCH] Rework partition page a bit --- src/yasi_applets/disks/disks.html | 56 +++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 17 deletions(-) diff --git a/src/yasi_applets/disks/disks.html b/src/yasi_applets/disks/disks.html index 9d61cb8..8be890d 100644 --- a/src/yasi_applets/disks/disks.html +++ b/src/yasi_applets/disks/disks.html @@ -88,33 +88,54 @@ fssize: {{ child['fssize'] }}

- {{ disk['name'] }} ({{(disk['size']/1024000000)|round(0)|int }} GB) - Serial: {{ disk['serial'] }} -

-{% for child in disk['children'] %} - -
-
-

{{ child['name'] }} ({{ (child['size']/1024000000)|round(2) }} GiB)

-

{{ child['mountpoint'] }} - {{ child['fstype'] }} -

-
-
-
-{% endfor %} + {{ disk['name'] }}:   {{ disk['model'] }} - {{ disk['tran'] }} disk ({{(disk['size']/1024000000)|round(0)|int }} GB) - Serial: {{ disk['serial'] }}

+
+ New Partition Table + Disk Details + Replicate Layout +
+ {% if disk['maj:min'] == "252:0" %} -
+
-

{{ disk['name'] }} ({{ (disk['size']/1024000000)|round(2) }} GiB)

-

/dev/{{ disk['name'] }} swap

{% endif %} + +{% set colors = ['teal', '#E69F00', '#56B4E9', '#009E73', '#0072B2', '#D55E00', '#CC79A7'] %} + +
+ {% for child in disk['children'] %} +
+   {{ child['name'] }} +
+ {% endfor %} +
+ + + + + + + + +{% for child in disk['children'] %} + + + + + + + +{% endfor %} +
PartitionTypeMount PointLabelSizeUsed
{{ child['name'] }}{{ child['fstype'] }}{{ child['mountpoint'] }}{{ child['label'] }} {{ (child['size']/1024000000)|round(2) }} GiB
+
+
+