Highlight followed space launches

Closes: #159
This commit is contained in:
Edward Betts 2024-06-15 23:01:59 +01:00
parent 31cd7e8b97
commit 12a2b739e8

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"/>