Pretty print the new dashboard numbers

This commit is contained in:
Kerollmops
2020-07-11 14:17:37 +02:00
parent d44428fa90
commit f6eae91c7d
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))
});