2024-01-03 09:13:58 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2024-04-16 22:01:16 +01:00
|
|
|
{% block title %}Space launches - Edward Betts{% endblock %}
|
|
|
|
|
2024-01-03 09:13:58 +00:00
|
|
|
{% block content %}
|
|
|
|
<div class="container-fluid mt-2">
|
|
|
|
<h1>Space launches</h1>
|
|
|
|
|
2024-07-01 20:27:19 +01:00
|
|
|
<h4>Filters</h4>
|
|
|
|
|
|
|
|
<p>Mission type:
|
|
|
|
|
|
|
|
{% if request.args.type %}<a href="{{ request.path }}">🗙</a>{% endif %}
|
|
|
|
|
|
|
|
{% for t in mission_types | sort %}
|
|
|
|
{% if t == request.args.type %}
|
|
|
|
<strong>{{ t }}</strong>
|
|
|
|
{% else %}
|
|
|
|
<a href="?type={{ t }}" class="text-nowrap">
|
|
|
|
{{ t }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if not loop.last %} | {% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>Vehicle:
|
|
|
|
{% if request.args.rocket %}<a href="{{ request.path }}">🗙</a>{% endif %}
|
|
|
|
|
|
|
|
{% for r in rockets | sort %}
|
|
|
|
{% if r == request.args.rockets %}
|
|
|
|
<strong>{{ r }}</strong>
|
|
|
|
{% else %}
|
|
|
|
<a href="?rocket={{ r }}" class="text-nowrap">
|
|
|
|
{{ r }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if not loop.last %} | {% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
|
2024-08-05 13:03:37 +01:00
|
|
|
<p>Orbit:
|
|
|
|
{% if request.args.orbit %}<a href="{{ request.path }}">🗙</a>{% endif %}
|
|
|
|
|
|
|
|
{% for name, abbrev in orbits | sort %}
|
|
|
|
{% if abbrev == request.args.orbit %}
|
|
|
|
<strong>{{ name }}</strong>
|
|
|
|
{% else %}
|
|
|
|
<a href="?orbit={{ abbrev }}" class="text-nowrap">
|
|
|
|
{{ name }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if not loop.last %} | {% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
|
2024-07-01 20:27:19 +01:00
|
|
|
{% for launch in launches %}
|
2024-06-15 23:01:59 +01:00
|
|
|
{% set highlight =" bg-primary-subtle" if launch.slug in config.FOLLOW_LAUNCHES else "" %}
|
2024-01-19 20:35:52 +00:00
|
|
|
{% set country = get_country(launch.country_code) %}
|
2024-06-15 23:01:59 +01:00
|
|
|
<div class="row{{highlight}}">
|
2024-01-03 09:13:58 +00:00
|
|
|
<div class="col-md-1 text-nowrap text-md-end">{{ launch.t0_date }}
|
|
|
|
|
|
|
|
<br class="d-none d-md-block"/>
|
|
|
|
{% if launch.t0_time %}
|
|
|
|
{{ launch.t0_time }}{% endif %}
|
|
|
|
{{ launch.net_precision }}
|
|
|
|
</div>
|
|
|
|
<div class="col-md-1 text-md-nowrap">
|
|
|
|
<span class="d-md-none">launch status:</span>
|
|
|
|
<abbr title="{{ launch.status.name }}">{{ launch.status.abbrev }}</abbr>
|
|
|
|
</div>
|
2024-01-19 20:35:52 +00:00
|
|
|
<div class="col">
|
|
|
|
<div>
|
|
|
|
{{ country.flag }}
|
2024-07-01 20:27:19 +01:00
|
|
|
{{ launch.rocket.full_name }}
|
2024-01-03 09:13:58 +00:00
|
|
|
–
|
|
|
|
<strong>{{launch.mission.name }}</strong>
|
|
|
|
–
|
|
|
|
|
|
|
|
{% if launch.launch_provider_abbrev %}
|
|
|
|
<abbr title="{{ launch.launch_provider }}">{{ launch.launch_provider_abbrev }}</abbr>
|
|
|
|
{% else %}
|
|
|
|
{{ launch.launch_provider }}
|
|
|
|
{% endif %}
|
|
|
|
({{ launch.launch_provider_type }})
|
|
|
|
—
|
|
|
|
{{ launch.orbit.name }} ({{ launch.orbit.abbrev }})
|
2024-01-19 20:35:52 +00:00
|
|
|
—
|
|
|
|
{{ launch.mission.type }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{% if launch.pad_wikipedia_url %}
|
|
|
|
<a href="{{ launch.pad_wikipedia_url }}">{{ launch.pad_name }}</a>
|
|
|
|
{% else %}
|
|
|
|
{{ launch.pad_name }} {% if launch.pad_name != "Unknown Pad" %}(no Wikipedia article){% endif %}
|
|
|
|
{% endif %}
|
|
|
|
— {{ launch.location }}
|
|
|
|
</div>
|
|
|
|
{% if launch.mission.agencies | count %}
|
|
|
|
<div>
|
|
|
|
{% for agency in launch.mission.agencies %}
|
|
|
|
{%- if not loop.first %}, {% endif %}
|
|
|
|
<a href="{{ agency.wiki_url }}">{{agency.name }}</a>
|
|
|
|
{{ get_country(agency.country_code).flag }}
|
|
|
|
({{ agency.type }}) {# <img src="{{ agency.logo_url }}"/> #}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2024-01-03 09:13:58 +00:00
|
|
|
{% endif %}
|
2024-01-19 20:35:52 +00:00
|
|
|
<div>
|
2024-01-03 09:13:58 +00:00
|
|
|
{% if launch.mission %}
|
|
|
|
{% for line in launch.mission.description.splitlines() %}
|
|
|
|
<p>{{ line }}</p>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<p>No description.</p>
|
|
|
|
{% endif %}
|
2024-01-19 20:35:52 +00:00
|
|
|
</div>
|
2024-01-03 09:13:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|