Improve launch status UI and alert on SpaceDevs payload errors

This commit is contained in:
Edward Betts 2026-02-21 16:39:47 +00:00
parent 458dfc5136
commit 7a50ea6016
3 changed files with 78 additions and 7 deletions

View file

@ -68,7 +68,10 @@
<div class="col-md-1 text-md-nowrap">
<span class="d-md-none">launch status:</span>
<abbr title="{{ launch.status.name }}">{{ launch.status.abbrev }}</abbr>
{% if launch.probability %}{{ launch.probability }}%{% endif %}
{% if launch.is_active_crewed %}
<span class="badge text-bg-info">In space</span>
{% endif %}
{% if launch.is_future and launch.probability %}{{ launch.probability }}%{% endif %}
</div>
<div class="col">
<div>
@ -121,7 +124,7 @@
{% else %}
<p>No description.</p>
{% endif %}
{% if launch.weather_concerns %}
{% if launch.weather_concerns and launch.status.name != "Launch Successful" %}
<h4>Weather concerns</h4>
{% for line in launch.weather_concerns.splitlines() %}
<p>{{ line }}</p>