canceled and blocked turn the remarks in red

This commit is contained in:
Arnold Dechamps 2024-03-22 02:55:21 +01:00
parent a923d7e798
commit 25f496998b
No known key found for this signature in database
GPG key ID: AE66543374E41C89

View file

@ -56,10 +56,19 @@
{% else %}
{% endif %}
</td>
<td class="px-6 py-4 font-medium text-amber-400 whitespace-nowrap">
{% if flight[i]["status"] != "Scheduled" %}
{{ flight[i]["status"] }}
{% if flight[i]["cancelled"] %}
<td class="px-6 py-4 font-medium text-red-600 whitespace-nowrap">
{{ flight[i]["status"] }}
{% elif flight[i]["blocked"] %}
<td class="px-6 py-4 font-medium text-red-600 whitespace-nowrap">
{{ flight[i]["status"] }}
{% else %}
<td class="px-6 py-4 font-medium text-amber-400 whitespace-nowrap">
{{ flight[i]["status"] }}
{% endif %}
{% else %}
<td class="px-6 py-4 font-medium text-amber-400 whitespace-nowrap">
{% endif %}
</td>
</tr>