summaryrefslogtreecommitdiff
path: root/share/www/script/browse.js
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2008-04-05 20:17:27 +0000
committerChristopher Lenz <cmlenz@apache.org>2008-04-05 20:17:27 +0000
commit4708e70c612a797b5d15774149ed589996d0c2e3 (patch)
tree0e8cb8758f529ced20cfb64ec46ad8a05b246eb9 /share/www/script/browse.js
parentc2ffeee2ad21a49a9c6d153aa89067505f1f1e26 (diff)
Improve database listing page.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@645171 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/browse.js')
-rw-r--r--share/www/script/browse.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/www/script/browse.js b/share/www/script/browse.js
index c1127608..927f110d 100644
--- a/share/www/script/browse.js
+++ b/share/www/script/browse.js
@@ -41,8 +41,9 @@ function CouchIndexPage() {
var info = new CouchDB(dbName).info();
$("#databases tbody.content").append(
"<tr><th><a href='database.html?" + dbName + "'>" +
- dbName + "</a></th><td>" + info.doc_count +"</td><td>" +
- info.update_seq + "</td></tr>");
+ dbName + "</a></th><td class='size'>" + prettyPrintSize(info.size) +
+ "</td><td class='count'>" + info.doc_count +
+ "</td><td class='seq'>" + info.update_seq + "</td></tr>");
$("#databases tbody tr:odd").addClass("odd");
$("#databases tbody.footer tr td").text(allDbs.length + " database(s)");
}