about summary refs log tree commit diff
path: root/uploader
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-12-17 12:29:50 -0600
committerFrederick Muriuki Muriithi2025-12-17 12:29:50 -0600
commitfd4fde868727a2779a11c38ef7cda300d4288030 (patch)
treee16b159e90160b96e44dab1cc8e3749e6c8e1aa0 /uploader
parentd30c5e255e5f3892a1a18e26d1de208773b1d2b9 (diff)
downloadgn-uploader-fd4fde868727a2779a11c38ef7cda300d4288030.tar.gz
Index page/Home page: Remove unnecessary check.
Since `sui_template(...)` function loads the appropriate template
depending on flags, there is no point in checking it again here.
Diffstat (limited to 'uploader')
-rw-r--r--uploader/base_routes.py7
l---------uploader/templates/sui-login.html1
2 files changed, 2 insertions, 6 deletions
diff --git a/uploader/base_routes.py b/uploader/base_routes.py
index cc2a270..e9f1165 100644
--- a/uploader/base_routes.py
+++ b/uploader/base_routes.py
@@ -36,16 +36,11 @@ def favicon():
 def index():
     """Load the landing page"""
     streamlined_ui = request.args.get("streamlined_ui")
-    if not bool(streamlined_ui):# TODO: Remove this section
-        return render_template(
-            "index.html" if user_logged_in() else "login.html",
-            gn2server_intro=urljoin(app.config["GN2_SERVER_URL"], "/intro"))
-
     with database_connection(app.config["SQL_URI"]) as conn:
         print("We found a species ID. Processing...")
         if not bool(request.args.get("species_id")):
             return render_template(
-                sui_template("index.html"),
+                sui_template("index.html" if user_logged_in() else "login.html"),
                 gn2server_intro=urljoin(app.config["GN2_SERVER_URL"], "/intro"),
                 species=all_species(conn),
                 streamlined_ui=streamlined_ui)
diff --git a/uploader/templates/sui-login.html b/uploader/templates/sui-login.html
new file mode 120000
index 0000000..733bbd3
--- /dev/null
+++ b/uploader/templates/sui-login.html
@@ -0,0 +1 @@
+sui-index.html
\ No newline at end of file