{# PostGIS health card — only rendered when the extension is installed. #} {% from "components/feedback.html" import badge %}
{{ f.fix }}
| Table | Column | Type | SRID | Rows | Index | Invalid | Extent |
|---|---|---|---|---|---|---|---|
| {{ c.table }} | {{ c.column }} | {{ c.type }} | {% if c.srid %}{{ c.srid }}{% else %}{{ badge("0", "warning") }}{% endif %} | {{ "{:,}".format(c.approx_rows) }} | {% if c.has_index %}{{ badge("GIST", "success") }}{% else %}{{ badge("none", "warning" if c.approx_rows >= 1000 else "info") }}{% endif %} | {% if c.invalid is none %}—{% elif c.invalid %}{{ c.invalid }}{% else %}0{% endif %} |