diff options
author | Helmut Grohne <helmut@subdivi.de> | 2019-03-05 21:18:34 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2019-03-05 21:18:34 +0100 |
commit | 6a1f177ffac999d9069c6158ae820d1c4a25ffc2 (patch) | |
tree | 2f7fac3390e02336ed36c914f22edc8868f57cbb /webapp.py | |
parent | b8d551c7e26f1aea1134a5324a863022537346f8 (diff) | |
download | crossqa-6a1f177ffac999d9069c6158ae820d1c4a25ffc2.tar.gz |
webapp: only show the bootstrap.d.n link when there is a problem
Thanks to Johannes Schauer for the suggestion.
Diffstat (limited to 'webapp.py')
-rw-r--r-- | webapp.py | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -30,8 +30,12 @@ src_template = """<!DOCTYPE html> <th>state</th> <th>architectures</th> </tr> + {%- 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 -%} <tr> <td>{{ reason|e }}</td> <td>{{ archs|arch_format }}</td> @@ -46,9 +50,11 @@ src_template = """<!DOCTYPE html> </table> <h5>See also</h5> <ul> - <li> - <a href="https://bootstrap.debian.net/cross_all/{{ sourcepackage|e }}.html">bootstrap.debian.net</a> - </li> + {%- if bootstrapdn.show -%} + <li> + <a href="https://bootstrap.debian.net/cross_all/{{ sourcepackage|e }}.html">bootstrap.debian.net</a> + </li> + {%- endif -%} <li> <a href="https://qa.debian.org/dose/debcheck/cross_unstable_main_amd64/">debcheck</a> </li> |