Show space launch images
This commit is contained in:
parent
77f0b17b37
commit
19ef9c24ba
|
@ -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"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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 }}
|
||||||
–
|
–
|
||||||
|
|
Loading…
Reference in a new issue