From 691f018e561e44f812c020bd6540ca9a3d356da5 Mon Sep 17 00:00:00 2001 From: pac7 <47831526-pac7@users.noreply.replit.com> Date: Mon, 22 Sep 2025 16:16:26 +0000 Subject: [PATCH] Improve visual consistency and modern standards across the website Add CSP nonce to script tags in park_detail.html and update Park model to potentially handle historical events. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 48ecdb60-d0f0-4b75-95c9-34e409ef35fb Replit-Commit-Checkpoint-Type: intermediate_checkpoint --- .replit | 4 ++++ apps/parks/models/parks.py | 1 + templates/parks/park_detail.html | 6 +++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.replit b/.replit index 3520ba63..a6a119ff 100644 --- a/.replit +++ b/.replit @@ -54,6 +54,10 @@ outputType = "webview" localPort = 5000 externalPort = 80 +[[ports]] +localPort = 35817 +externalPort = 3003 + [[ports]] localPort = 41923 externalPort = 3000 diff --git a/apps/parks/models/parks.py b/apps/parks/models/parks.py index 023028ca..d52b7789 100644 --- a/apps/parks/models/parks.py +++ b/apps/parks/models/parks.py @@ -336,6 +336,7 @@ class Park(TrackedModel): # Try pghistory events print("Searching pghistory events") + historical_event = None event_model = getattr(cls, "event_model", None) if event_model: historical_event = ( diff --git a/templates/parks/park_detail.html b/templates/parks/park_detail.html index cf37da26..ee6473ae 100644 --- a/templates/parks/park_detail.html +++ b/templates/parks/park_detail.html @@ -12,7 +12,7 @@ {% endblock %} {% block content %} - -