From 6a1f177ffac999d9069c6158ae820d1c4a25ffc2 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 5 Mar 2019 21:18:34 +0100 Subject: webapp: only show the bootstrap.d.n link when there is a problem Thanks to Johannes Schauer for the suggestion. --- webapp.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/webapp.py b/webapp.py index dd20ad6..128b816 100644 --- a/webapp.py +++ b/webapp.py @@ -30,8 +30,12 @@ src_template = """ state architectures + {%- set bootstrapdn = namespace(show=False) -%} {%- set okarchs = depresult.pop(None, None) -%} {%- for reason, archs in depresult.items()|sort -%} + {%- if not reason.startswith("skew ") -%} + {%- set bootstrapdn.show = True -%} + {%- endif -%} {{ reason|e }} {{ archs|arch_format }} @@ -46,9 +50,11 @@ src_template = """
See also