You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2013/10/21 17:10:57 UTC
git commit: updated refs/heads/master to 12af14b
Updated Branches:
refs/heads/master e1f5d8dbc -> 12af14b8f
Fauxton: add web-index url for database model
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/12af14b8
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/12af14b8
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/12af14b8
Branch: refs/heads/master
Commit: 12af14b8f54997bdcc89419f61a9880632d0535a
Parents: e1f5d8d
Author: Garren Smith <ga...@gmail.com>
Authored: Mon Oct 21 17:10:43 2013 +0200
Committer: Garren Smith <ga...@gmail.com>
Committed: Mon Oct 21 17:10:43 2013 +0200
----------------------------------------------------------------------
src/fauxton/app/modules/databases/resources.js | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/12af14b8/src/fauxton/app/modules/databases/resources.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/databases/resources.js b/src/fauxton/app/modules/databases/resources.js
index 6678d49..237c4ce 100644
--- a/src/fauxton/app/modules/databases/resources.js
+++ b/src/fauxton/app/modules/databases/resources.js
@@ -50,6 +50,8 @@ function(app, FauxtonAPI, Documents) {
url: function(context) {
if (context === "index") {
return "/database/" + this.id + "/_all_docs";
+ } else if (context === "web-index") {
+ return "#/database/"+ encodeURIComponent(this.get("name")) + "/_all_docs?limit=100";
} else if (context === "changes") {
return "/database/" + this.id + "/_changes?descending=true&limit=100&include_docs=true";
} else if (context === "app") {