diff options
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> |