fix commas

This commit is contained in:
pacnpal
2024-11-03 20:21:39 +00:00
parent d3a69072d2
commit d4b08bbaed
21 changed files with 390 additions and 98 deletions

View File

@@ -13,14 +13,11 @@
<div>
<h1 class="mb-2 text-3xl font-bold text-gray-900 dark:text-white">{{ park.name }}</h1>
{% if park.city or park.state or park.country %}
<p class="mb-2 text-gray-600 dark:text-gray-400">
<i class="mr-1 fas fa-map-marker-alt"></i>
{% if park.city %}{{ park.city }}{% endif %}
{% if park.city and park.state %}, {% endif %}
{% if park.state %}{{ park.state }}{% endif %}
{% if park.country and park.state or park.city %}, {% endif %}
{% if park.country %}{{ park.country }}{% endif %}
</p>
{% spaceless %}
<p class="mb-2 text-gray-600 dark:text-gray-400">
<i class="mr-1 fas fa-map-marker-alt"></i> {% if park.city %}{{ park.city }}{% endif %}{% if park.city and park.state %}, {% endif %}{% if park.state %}{{ park.state }}{% endif %}{% if park.country and park.state or park.city %}, {% endif %}{% if park.country %}{{ park.country }}{% endif %}
</p>
{% endspaceless %}
{% endif %}
</div>
{% if user.is_authenticated %}
@@ -191,10 +188,10 @@
{% endif %}
</div>
<div class="mt-2">
{% for field, change in record.diff_against_previous %}
{% for field, changes in record.diff_against_previous.items %}
<div class="text-sm">
<span class="font-medium">{{ field }}:</span>
{{ change.old }} → {{ change.new }}
{{ changes.old }} → {{ changes.new }}
</div>
{% endfor %}
</div>

View File

@@ -19,11 +19,10 @@
{% if park.city or park.state or park.country %}
<p class="mb-3 text-gray-600 dark:text-gray-400">
<i class="mr-1 fas fa-map-marker-alt"></i>
{% if park.city %}{{ park.city }}{% endif %}
{% if park.city and park.state %}, {% endif %}
{% if park.state %}{{ park.state }}{% endif %}
{% if park.country and park.state or park.city %}, {% endif %}
{% if park.country %}{{ park.country }}{% endif %}
{% spaceless %}
{% if park.city %}{{ park.city }}{% endif %}{% if park.city and park.state %}, {% endif %}{% if park.state %}{{ park.state }}{% endif %}{% if park.country and park.state or park.city %}, {% endif %}{% if park.country %}{{ park.country }}{% endif %}
</p>
{% endspaceless %}
</p>
{% endif %}
<div class="flex flex-wrap gap-2">

View File

@@ -205,10 +205,10 @@
{% endif %}
</div>
<div class="mt-2">
{% for field, change in record.diff_against_previous %}
{% for field, changes in record.diff_against_previous.items %}
<div class="text-sm">
<span class="font-medium">{{ field }}:</span>
{{ change.old }} → {{ change.new }}
{{ changes.old }} → {{ changes.new }}
</div>
{% endfor %}
</div>