Sometimes there is no launch pad wikipedia URL

This commit is contained in:
Edward Betts 2023-11-25 10:09:13 +00:00
parent 5d5b9016d1
commit 9185052092

View file

@ -193,7 +193,11 @@
— —
{{ launch.orbit.name }} ({{ launch.orbit.abbrev }}) {{ launch.orbit.name }} ({{ launch.orbit.abbrev }})
<br/> <br/>
<a href="{{ launch.pad_wikipedia_url }}">{{ launch.pad_name }}</a> {% 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 %}
&mdash; {{ launch.location }}<br/> &mdash; {{ launch.location }}<br/>
{% for line in launch.mission.description.splitlines() %} {% for line in launch.mission.description.splitlines() %}