Implemented database summary on index page

Closes #41
This commit is contained in:
Simon Willison 2017-10-26 21:05:13 -07:00
commit 2a9799bae6
4 changed files with 24 additions and 5 deletions

View file

@ -5,7 +5,7 @@
{% block content %}
<h1><a href="/{{ database }}-{{ database_hash }}">{{ database }}</a></h1>
<h2>{{ table }}{% if total_rows != None %} ({{ total_rows }} total row{% if total_rows == 1 %}{% else %}s{% endif %} in this table){% endif %}</h2>
<h2>{{ table }}{% if total_rows != None %} ({{ "{:,}".format(total_rows) }} total row{% if total_rows == 1 %}{% else %}s{% endif %} in this table){% endif %}</h2>
<style>
td {