From 9185052092558f9a25a287775e49192156b61ffd Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 25 Nov 2023 10:09:13 +0000 Subject: [PATCH] Sometimes there is no launch pad wikipedia URL --- templates/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 7e700df..6911ab2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -193,7 +193,11 @@ — {{ launch.orbit.name }} ({{ launch.orbit.abbrev }})
- {{ launch.pad_name }} + {% if launch.pad_wikipedia_url %} + {{ launch.pad_name }} + {% else %} + {{ launch.pad_name }} {% if launch.pad_name != "Unknown Pad" %}(no Wikipedia article){% endif %} + {% endif %} — {{ launch.location }}
{% for line in launch.mission.description.splitlines() %}