mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 03:31:08 -05:00
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:
4
.replit
4
.replit
@@ -54,6 +54,10 @@ outputType = "webview"
|
|||||||
localPort = 5000
|
localPort = 5000
|
||||||
externalPort = 80
|
externalPort = 80
|
||||||
|
|
||||||
|
[[ports]]
|
||||||
|
localPort = 35817
|
||||||
|
externalPort = 3003
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 41923
|
localPort = 41923
|
||||||
externalPort = 3000
|
externalPort = 3000
|
||||||
|
|||||||
@@ -336,6 +336,7 @@ class Park(TrackedModel):
|
|||||||
|
|
||||||
# Try pghistory events
|
# Try pghistory events
|
||||||
print("Searching pghistory events")
|
print("Searching pghistory events")
|
||||||
|
historical_event = None
|
||||||
event_model = getattr(cls, "event_model", None)
|
event_model = getattr(cls, "event_model", None)
|
||||||
if event_model:
|
if event_model:
|
||||||
historical_event = (
|
historical_event = (
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<script>
|
<script nonce="{{ request.csp_nonce }}">
|
||||||
document.addEventListener('alpine:init', () => {
|
document.addEventListener('alpine:init', () => {
|
||||||
Alpine.data('photoUploadModal', () => ({
|
Alpine.data('photoUploadModal', () => ({
|
||||||
show: false,
|
show: false,
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
<dd class="mt-1">
|
<dd class="mt-1">
|
||||||
<span class="text-sm font-bold text-sky-900 dark:text-sky-400">
|
<span class="text-sm font-bold text-sky-900 dark:text-sky-400">
|
||||||
{{ park.operator.name }}
|
{{ park.operator.name }}
|
||||||
</a>
|
</span>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -274,7 +274,7 @@
|
|||||||
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
||||||
<script src="{% static 'js/park-map.js' %}"></script>
|
<script src="{% static 'js/park-map.js' %}"></script>
|
||||||
|
|
||||||
<script>
|
<script nonce="{{ request.csp_nonce }}">
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
var mapElement = document.getElementById('park-map');
|
var mapElement = document.getElementById('park-map');
|
||||||
if (mapElement && mapElement.dataset.latitude && mapElement.dataset.longitude) {
|
if (mapElement && mapElement.dataset.latitude && mapElement.dataset.longitude) {
|
||||||
|
|||||||
Reference in New Issue
Block a user