diff options
author | John Christopher Anderson <jchris@apache.org> | 2009-02-22 07:31:26 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2009-02-22 07:31:26 +0000 |
commit | 1ebc2117452516f6ac6f4f458d7372bc710b79d2 (patch) | |
tree | e6dc0c62e64e29247e5c2cf18343690d01e1bc0c /share/www/script/futon.browse.js | |
parent | 4838c35db5f4d49181b22d72f4cb5697b89c8870 (diff) |
Link to design docs that have ddoc.couchapp.index or index.html, from Futon database index.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@746644 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/futon.browse.js')
-rw-r--r-- | share/www/script/futon.browse.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index 30cff66e..6a282da6 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -52,9 +52,16 @@ $("#databases tbody.content").append("<tr>" + "<th><a href='database.html?" + encodeURIComponent(dbName) + "'>" + dbName + "</a></th>" + - "<td class='size'></td><td class='count'></td>" + + "<td class='size'></td><td class='apps'></td><td class='count'></td>" + "<td class='seq'></td></tr>"); - $.couch.db(dbName).info({ + var db = $.couch.db(dbName); + db.allApps({ + eachApp : function(name, path) { + $("#databases tbody.content tr:eq(" + idx + ")") + .find("td.apps").append('<a href="'+path+'">'+name+'</a> '); + } + }); + db.info({ success: function(info) { $("#databases tbody.content tr:eq(" + idx + ")") .find("td.size").text($.futon.formatSize(info.disk_size)).end() |