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
This commit is contained in:
pac7
2025-09-22 16:16:26 +00:00
parent 6697d8890b
commit 691f018e56
3 changed files with 8 additions and 3 deletions

View File

@@ -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 = (