Skip to content

Commit

Permalink
Merge pull request #11 from altf4arnold/canceled-in-red
Browse files Browse the repository at this point in the history
canceled and blocked turn the remarks in red
  • Loading branch information
altf4arnold authored Mar 22, 2024
2 parents a923d7e + 25f4969 commit 59ddeb6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions templates/screen.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,19 @@ <h1 class="pl-8 lg:pl-0 text-white text-2xl">{{ airport["name"] }} Airport Depar
{% 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>
Expand Down

0 comments on commit 59ddeb6

Please sign in to comment.