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/12/10 16:44:34 UTC
[2/3] git commit: updated refs/heads/master to 0f37358
extensions added for sidebar
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/6f5580a6
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/6f5580a6
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/6f5580a6
Branch: refs/heads/master
Commit: 6f5580a6811ee07bcb80124956c720a4bc735c4d
Parents: 204551c
Author: suelockwood <de...@apache.org>
Authored: Thu Dec 5 15:46:28 2013 -0500
Committer: Garren Smith <ga...@gmail.com>
Committed: Tue Dec 10 17:42:58 2013 +0200
----------------------------------------------------------------------
.gitignore | 1 +
src/fauxton/app/modules/documents/views.js | 17 +++++++++++++++--
2 files changed, 16 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/6f5580a6/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 2d6a17b..1f8c4a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -132,3 +132,4 @@ test/local.ini
tmp
utils/run
src/fauxton/test/test.config.js
+src/fauxton/app/initialize.js
http://git-wip-us.apache.org/repos/asf/couchdb/blob/6f5580a6/src/fauxton/app/modules/documents/views.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/documents/views.js b/src/fauxton/app/modules/documents/views.js
index 64e304c..b621e50 100644
--- a/src/fauxton/app/modules/documents/views.js
+++ b/src/fauxton/app/modules/documents/views.js
@@ -1637,7 +1637,9 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum
},
serialize: function() {
- var docLinks = FauxtonAPI.getExtensions('docLinks');
+ var docLinks = FauxtonAPI.getExtensions('docLinks'),
+ addLinks = FauxtonAPI.getExtensions('sidebar:links'),
+ extensionList = FauxtonAPI.getExtensions('sidebar:list');
return {
changes_url: '#' + this.database.url('changes'),
permissions_url: '#' + this.database.url('app') + '/permissions',
@@ -1646,7 +1648,9 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum
database_url: '#' + this.database.url('app'),
docLinks: docLinks,
showNewView: this.showNewView,
- docLimit: Databases.DocLimit
+ docLimit: Databases.DocLimit,
+ addLinks: addLinks,
+ extensionList: extensionList > 0
};
},
@@ -1663,6 +1667,15 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum
},
beforeRender: function(manage) {
+
+ var sidebarListViews = FauxtonAPI.getExtensions('sidebar:list');
+ _.each(sidebarListViews, function (view) {
+ var extension = this.insertView('#extension-navs', view);
+ extension.update(this.database, this.collection, this.viewName);
+ extension.render();
+ }, this);
+
+
this.collection.each(function(design) {
if (design.has('doc')){
var ddoc = design.id.split('/')[1];