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"]),
|
||||
"probability": launch["probability"],
|
||||
"weather_concerns": launch["weather_concerns"],
|
||||
"image": launch.get("image"),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -72,6 +72,11 @@
|
|||
</div>
|
||||
<div class="col">
|
||||
<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>
|
||||
{{ launch.rocket.full_name }}
|
||||
–
|
||||
|
|
Loading…
Reference in a new issue