mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-21 15:51:09 -05:00
fix commas
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user