From 1ebc2117452516f6ac6f4f458d7372bc710b79d2 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Sun, 22 Feb 2009 07:31:26 +0000 Subject: 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 --- share/www/script/futon.browse.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'share/www/script/futon.browse.js') 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("" + "" + dbName + "" + - "" + + "" + ""); - $.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(''+name+' '); + } + }); + db.info({ success: function(info) { $("#databases tbody.content tr:eq(" + idx + ")") .find("td.size").text($.futon.formatSize(info.disk_size)).end() -- cgit v1.2.3