summaryrefslogtreecommitdiff
path: root/webapp.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2019-03-05 21:18:34 +0100
committerHelmut Grohne <helmut@subdivi.de>2019-03-05 21:18:34 +0100
commit6a1f177ffac999d9069c6158ae820d1c4a25ffc2 (patch)
tree2f7fac3390e02336ed36c914f22edc8868f57cbb /webapp.py
parentb8d551c7e26f1aea1134a5324a863022537346f8 (diff)
downloadcrossqa-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.py12
1 files 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 = """<!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>