Updated Branches: refs/heads/master 936edf85f -> 6bb810f4a
Fauxton: Add extension to new doc/index section Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/6bb810f4 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/6bb810f4 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/6bb810f4 Branch: refs/heads/master Commit: 6bb810f4a50ae8015b717d61c91073becde547dc Parents: 936edf8 Author: Garren Smith <[email protected]> Authored: Thu Dec 12 17:35:19 2013 +0200 Committer: Garren Smith <[email protected]> Committed: Thu Dec 12 17:35:19 2013 +0200 ---------------------------------------------------------------------- src/fauxton/app/modules/documents/views.js | 2 ++ src/fauxton/app/templates/documents/sidebar.html | 3 +++ 2 files changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/6bb810f4/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 49c443d..cac4f48 100644 --- a/src/fauxton/app/modules/documents/views.js +++ b/src/fauxton/app/modules/documents/views.js @@ -1657,6 +1657,7 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum serialize: function() { var docLinks = FauxtonAPI.getExtensions('docLinks'), + newLinks = FauxtonAPI.getExtensions('sidebar:newLinks'), addLinks = FauxtonAPI.getExtensions('sidebar:links'), extensionList = FauxtonAPI.getExtensions('sidebar:list'); return { @@ -1668,6 +1669,7 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum docLinks: docLinks, docLimit: Databases.DocLimit, addLinks: addLinks, + newLinks: newLinks, extensionList: extensionList > 0 }; }, http://git-wip-us.apache.org/repos/asf/couchdb/blob/6bb810f4/src/fauxton/app/templates/documents/sidebar.html ---------------------------------------------------------------------- diff --git a/src/fauxton/app/templates/documents/sidebar.html b/src/fauxton/app/templates/documents/sidebar.html index 156398d..8a73ae9 100644 --- a/src/fauxton/app/templates/documents/sidebar.html +++ b/src/fauxton/app/templates/documents/sidebar.html @@ -43,6 +43,9 @@ the License. </li> <li> <a href="#<%= database.url('app') %>/new_view">Secondary Index</a> + <% _.each(newLinks, function (item) { %> + <a href="#<%= database.url('app') %>/<%=item.url%>"> <%= item.name %></a> + <% }); %> </li> </ul> </div>
