diff --git a/src/applets/disks/disks.html b/src/applets/disks/disks.html index 0f8f601..c7d34bd 100644 --- a/src/applets/disks/disks.html +++ b/src/applets/disks/disks.html @@ -1,17 +1,25 @@ {% extends "layout.html" %} {% block body %} -

Disks and Partitions

+
+ +
+ +

  System Installer - Disks and Partitions

+
+
+ +

- @@ -32,17 +40,75 @@

-

Proposed layout:

+

There are {{ blockdevs["blockdevices"]|count }} block devices detected.

+

They are


-
-

Physical disk: TOSHIBA HDWD120 (2000 GB)Healthy

+{% for disk in blockdevs["blockdevices"] %} +

Diskname: {{ disk['name'] }}

+

Model: {{ disk['model'] }}

+

Serial: {{ disk['serial'] }}

+

Removable: {{ disk['rm'] }}

+

Size: {{ (disk['size'] | int) / 1024000000 | round(2) }} GiB

+

ID: {{disk['id'] }}

+

pttype: {{disk['pttype'] }}

+

Maj:min: {{disk['maj:min']}}

+

phy-sec: {{ disk['phy-sec'] }}. log-sec: {{ disk['log-sec'] }}

+

There are {{ disk['children']|count }} Children

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

Name: {{ child['name'] }}. Path: {{ child['path'] }}. {{ child['size'] }}. Block: {{ child['subsystems'] }} {{ child['maj:min'] }} {{ child['type'] }}

+

Fstype: {{ child['fstype'] }}. Label: {{ child['label'] }}. Rota: {{ child['rota'] }}

+

Parttypename: {{ child['parttypename'] }} +
+{% endfor %} +
+{% endfor %} + +

+

Proposed layout:

+ +
+ + +
+ + +
+

Physical disk: TOSHIBA HDWD120 (2000 GB)
+

+
+
+

/dev/sda1

+

/boot/efi + 200 MB + vfat +

+
+
+ + +
+
+ +

+ +
+

Physical disk: TOSHIBA HDWD120 (2000 GB)

@@ -66,43 +132,26 @@

-
-

Physical disk: TOSHIBA HDWD120 (2000 GB)Healthy

-
-
-
-

/dev/sda1

-

/boot/efi - 200 MB - vfat -

-
-
- - -
-
+
+ +


-
+
+ +
- -

-
+
+ {% endblock %} diff --git a/src/applets/disks/disks_partition.html b/src/applets/disks/disks_partition.html index 77f9683..5b575dd 100644 --- a/src/applets/disks/disks_partition.html +++ b/src/applets/disks/disks_partition.html @@ -15,8 +15,8 @@ - - + + diff --git a/src/applets/disks/routes.py b/src/applets/disks/routes.py index 29288c2..c9062ee 100644 --- a/src/applets/disks/routes.py +++ b/src/applets/disks/routes.py @@ -8,7 +8,9 @@ def disks(): """ Disks screen for the webui. """ - return render_template('disks.html') + blockdevs = lsblk.list_block_devices() + print(lsblk.list_block_devices()) + return render_template('disks.html', blockdevs=blockdevs) @bp.route('/disks/partition/') diff --git a/src/static/welcome.css b/src/static/welcome.css index af06622..de8fac7 100644 --- a/src/static/welcome.css +++ b/src/static/welcome.css @@ -16,5 +16,6 @@ background-image: radial-gradient(circle at 30% 86%, rgba(255,255,255,0.03) 0%, body { display: flex; + border-radius: 15px; } diff --git a/src/templates/layout.html b/src/templates/layout.html index 62173bb..887e3fb 100644 --- a/src/templates/layout.html +++ b/src/templates/layout.html @@ -7,11 +7,11 @@ - + -
+ -
+
{% block body %}