Show space launch images

This commit is contained in:
Edward Betts 2025-01-11 15:05:17 -06:00
parent 77f0b17b37
commit 19ef9c24ba
2 changed files with 6 additions and 0 deletions

View file

@ -145,6 +145,7 @@ def summarize_launch(launch: Launch) -> Summary:
"orbit": get_nested(launch, ["mission", "orbit"]), "orbit": get_nested(launch, ["mission", "orbit"]),
"probability": launch["probability"], "probability": launch["probability"],
"weather_concerns": launch["weather_concerns"], "weather_concerns": launch["weather_concerns"],
"image": launch.get("image"),
} }

View file

@ -72,6 +72,11 @@
</div> </div>
<div class="col"> <div class="col">
<div> <div>
{% if launch.image %}
<div>
<img src="{{ launch.image }}" class="img-fluid img-thumbnail" style="max-width: 350px; height: auto;" />
</div>
{% endif %}
<abbr title="{{ country.name }}">{{ country.flag }}</abbr> <abbr title="{{ country.name }}">{{ country.flag }}</abbr>
{{ launch.rocket.full_name }} {{ launch.rocket.full_name }}
&ndash; &ndash;