Pretty print the new dashboard numbers

This commit is contained in:
Kerollmops 2020-07-11 14:17:37 +02:00
parent d44428fa90
commit f6eae91c7d
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
6 changed files with 146 additions and 6 deletions

View file

@ -53,3 +53,13 @@ $('#search').on('input', function () {
},
});
});
// Make the number of document a little bit prettier
$('#docs-count').text(function(index, text) {
return parseInt(text).toLocaleString()
});
// Make the database a little bit easier to read
$('#db-size').text(function(index, text) {
return filesize(parseInt(text))
});