From 7531b17018a0a81edce95802cc370661106cc481 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 18 Sep 2024 01:27:22 -0500 Subject: Document the menu on the home page. --- uploader/base_routes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'uploader/base_routes.py') diff --git a/uploader/base_routes.py b/uploader/base_routes.py index 88247b2..a20b7ff 100644 --- a/uploader/base_routes.py +++ b/uploader/base_routes.py @@ -1,5 +1,6 @@ """Basic routes required for all pages""" import os +from urllib.parse import urljoin from flask import ( Blueprint, @@ -23,7 +24,9 @@ def favicon(): @base.route("/", methods=["GET"]) def index(): """Load the landing page""" - return render_template("index.html" if user_logged_in() else "login.html") + return render_template("index.html" if user_logged_in() else "login.html", + gn2server_intro=urljoin(app.config["GN2_SERVER_URL"], + "/intro")) def appenv(): """Get app's guix environment path.""" -- cgit v1.2.3