couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [10/15] git commit: updated refs/heads/1809-compact-and-clean to 489a6c2
Date Tue, 22 Oct 2013 15:24:20 GMT
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 <garren.smith@gmail.com>
Authored: Mon Oct 21 17:10:43 2013 +0200
Committer: Garren Smith <garren.smith@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") {


Mime
View raw message