about summary refs log tree commit diff
path: root/uploader/base_routes.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-18 01:27:22 -0500
committerFrederick Muriuki Muriithi2024-09-18 01:36:37 -0500
commit7531b17018a0a81edce95802cc370661106cc481 (patch)
tree1b72fa5d8bcb60d9f3702bc11e9a4d02b772aed4 /uploader/base_routes.py
parent17defa03f395aa9895b524ef3125e138b3987507 (diff)
downloadgn-uploader-7531b17018a0a81edce95802cc370661106cc481.tar.gz
Document the menu on the home page.
Diffstat (limited to 'uploader/base_routes.py')
-rw-r--r--uploader/base_routes.py5
1 files changed, 4 insertions, 1 deletions
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."""