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/1809-compact-and-clean Commit: 12af14b8f54997bdcc89419f61a9880632d0535a Parents: e1f5d8d Author: Garren Smith <[email protected]> Authored: Mon Oct 21 17:10:43 2013 +0200 Committer: Garren Smith <[email protected]> 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") {
