22 lines
469 B
Python
22 lines
469 B
Python
from applets.disks import bp
|
|
from flask import Flask, request, session, redirect, \
|
|
url_for, render_template, flash, Blueprint
|
|
import dmm.lsblk as lsblk
|
|
|
|
@bp.route('/disks/')
|
|
def disks():
|
|
"""
|
|
Disks screen for the webui.
|
|
"""
|
|
return render_template('disks.html')
|
|
|
|
|
|
@bp.route('/disks/partition/<part>')
|
|
def disks_partition(part):
|
|
"""
|
|
Partition modal for the webui partition screen.
|
|
"""
|
|
return render_template('disks_partition.html')
|
|
|
|
|