From 48f3c6d6cd889efd49e4f0246f4a8a8f569518ac Mon Sep 17 00:00:00 2001 From: Morgana Date: Mon, 13 Apr 2026 14:39:45 -0500 Subject: [PATCH] Added External Links --- app.py | 4 ++-- templates/index.html | 16 +++++++++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index d837619..bc2bb31 100644 --- a/app.py +++ b/app.py @@ -95,7 +95,7 @@ def index_des(): def render_main(): session["main"] = request.endpoint - wdata = db.welcomes.find_one({"id": request.endpoint}) + fpdata = db.frontpage.find_one({"id": request.endpoint}) dsdata = db.domains.find({"cat": {"$ne": None}}) udata = ( db.users.find_one({"id": session["username"]}) if session["username"] else None @@ -109,7 +109,7 @@ def render_main(): results[ddata["quad"]][ddata["cat"]][ddata["name"]] = ddata["id"] return render_template( "index.html", - wdata=wdata, + fpdata=fpdata, domains=results, quad=(request.endpoint or "ade")[-3:], ) diff --git a/templates/index.html b/templates/index.html index f53d794..a1a3880 100644 --- a/templates/index.html +++ b/templates/index.html @@ -43,13 +43,23 @@ {% endfor %} + {% if fpdata["links"] %} +
+

Links

+ +
+ {% endif %}
-

{{ wdata["header"] }}

-

{{ wdata["text"] }}

+

{{ fpdata["header"] }}

+

{{ fpdata["text"] }}

For assistance, please contact the Sector Administrator at {{ wdata['email'] }}@icolotl.com. + href="mailto:{{ fpdata['email'] }}@icolotl.com">{{ fpdata['email'] }}@icolotl.com.

Index Unified Login