Compare commits

..

2 commits

Author SHA1 Message Date
Edward Betts 12a2b739e8 Highlight followed space launches
Closes: #159
2024-06-15 23:02:09 +01:00
Edward Betts 31cd7e8b97 Include slug in launch summary 2024-06-15 23:01:31 +01:00
2 changed files with 3 additions and 1 deletions

View file

@ -125,6 +125,7 @@ def summarize_launch(launch: Launch) -> Summary:
return { return {
"name": launch.get("name"), "name": launch.get("name"),
"slug": launch["slug"],
"status": launch.get("status"), "status": launch.get("status"),
"net": launch.get("net"), "net": launch.get("net"),
"net_precision": net_precision, "net_precision": net_precision,

View file

@ -7,8 +7,9 @@
<h1>Space launches</h1> <h1>Space launches</h1>
{% for launch in rockets %} {% for launch in rockets %}
{% set highlight =" bg-primary-subtle" if launch.slug in config.FOLLOW_LAUNCHES else "" %}
{% set country = get_country(launch.country_code) %} {% set country = get_country(launch.country_code) %}
<div class="row"> <div class="row{{highlight}}">
<div class="col-md-1 text-nowrap text-md-end">{{ launch.t0_date }} <div class="col-md-1 text-nowrap text-md-end">{{ launch.t0_date }}
<br class="d-none d-md-block"/> <br class="d-none d-md-block"/>