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

@@ -12,7 +12,7 @@
{% endblock %}
{% block content %}
<script>
<script nonce="{{ request.csp_nonce }}">
document.addEventListener('alpine:init', () => {
Alpine.data('photoUploadModal', () => ({
show: false,
@@ -66,7 +66,7 @@
<dd class="mt-1">
<span class="text-sm font-bold text-sky-900 dark:text-sky-400">
{{ park.operator.name }}
</a>
</span>
</dd>
</div>
</div>
@@ -274,7 +274,7 @@
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="{% static 'js/park-map.js' %}"></script>
<script>
<script nonce="{{ request.csp_nonce }}">
document.addEventListener('DOMContentLoaded', function() {
var mapElement = document.getElementById('park-map');
if (mapElement && mapElement.dataset.latitude && mapElement.dataset.longitude) {