Show size of database file next to download link, closes #172

This commit is contained in:
Simon Willison 2019-02-05 20:53:44 -08:00
commit 4462a5ab28
7 changed files with 37 additions and 1 deletions

View file

@ -57,7 +57,7 @@
{% endif %}
{% if config.allow_download %}
<p>Download SQLite DB: <a href="/{{ database }}-{{ database_hash }}.db">{{ database }}.db</a></p>
<p class="download-sqlite">Download SQLite DB: <a href="/{{ database }}-{{ database_hash }}.db">{{ database }}.db</a> <em>{{ format_bytes(size) }}</em></p>
{% endif %}
{% include "_codemirror_foot.html" %}