diff options
author | Garren Smith <garren.smith@gmail.com> | 2013-10-21 17:10:43 +0200 |
---|---|---|
committer | Garren Smith <garren.smith@gmail.com> | 2013-10-21 17:10:43 +0200 |
commit | 12af14b8f54997bdcc89419f61a9880632d0535a (patch) | |
tree | 647074b75b5bce2415d976b0537a6c354312ba7c | |
parent | e1f5d8dbce37460419f406bf87284dbd7712f82b (diff) | |
download | couchdb-12af14b8f54997bdcc89419f61a9880632d0535a.tar.gz |
Fauxton: add web-index url for database model
-rw-r--r-- | src/fauxton/app/modules/databases/resources.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fauxton/app/modules/databases/resources.js b/src/fauxton/app/modules/databases/resources.js index 6678d4912..237c4ce87 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") { |