about summary refs log tree commit diff
diff options
context:
space:
mode:
-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