mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Index page no longer uses inspect data - refs #420
Also introduced a mechanism whereby table counts are calculated against a time limit but immutable databases have their table counts calculated on server startup.
This commit is contained in:
parent
669fa21a71
commit
e7151ccccf
4 changed files with 133 additions and 23 deletions
|
|
@ -10,7 +10,7 @@
|
|||
{% block description_source_license %}{% include "_description_source_license.html" %}{% endblock %}
|
||||
|
||||
{% for database in databases %}
|
||||
<h2 style="padding-left: 10px; border-left: 10px solid #{{ database.hash[:6] }}"><a href="{{ database.path }}">{{ database.name }}</a></h2>
|
||||
<h2 style="padding-left: 10px; border-left: 10px solid #{{ database.color }}"><a href="{{ database.path }}">{{ database.name }}</a></h2>
|
||||
<p>
|
||||
{{ "{:,}".format(database.table_rows_sum) }} rows in {{ database.tables_count }} table{% if database.tables_count != 1 %}s{% endif %}{% if database.tables_count and database.hidden_tables_count %}, {% endif %}
|
||||
{% if database.hidden_tables_count %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue