1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-22 03:39:05 +02:00

Re-add flavor and steps to wizard.

This commit is contained in:
Alexander Graf 2022-11-25 08:29:50 +01:00
parent b3f534a6ac
commit 7828115102
No known key found for this signature in database
GPG Key ID: B8A9DC143E075629

View File

@ -78,7 +78,12 @@ def build_app(path):
@prefix_bp.route("/")
@root_bp.route("/")
def wizard():
return flask.render_template('wizard.html', subnet6=random_ipv6_subnet())
return flask.render_template(
'wizard.html',
flavor="compose",
steps=sorted(os.listdir(os.path.join(path, "templates", "steps", "compose"))),
subnet6=random_ipv6_subnet()
)
@prefix_bp.route("/submit", methods=["POST"])
@root_bp.route("/submit", methods=["POST"])