Some partition ui stuff
This commit is contained in:
@@ -47,6 +47,23 @@ def disks_partition(part):
|
||||
partition=partition)
|
||||
|
||||
|
||||
@bp.route('/disks/details/<disk>')
|
||||
def disks_details(disk):
|
||||
"""
|
||||
Show some details about a disk.
|
||||
"""
|
||||
blockdevs = lsblk.list_block_devices()
|
||||
return render_template('disks_details.html', disk=disk, blockdevs=blockdevs)
|
||||
|
||||
|
||||
@bp.route('/disks/wipe_table/<disk>')
|
||||
def disks_wipe_table(disk):
|
||||
"""
|
||||
Create a new partition table
|
||||
"""
|
||||
return render_template('disks_wipe_partition.html', disk=disk)
|
||||
|
||||
|
||||
def build_menu():
|
||||
"""
|
||||
Define menu items and paths.
|
||||
|
||||
Reference in New Issue
Block a user