You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2013/12/16 21:04:00 UTC

[40/50] git commit: updated refs/heads/1744-single-config-file to 1c344a9

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/1744-single-config-file
Commit: 6bb810f4a50ae8015b717d61c91073becde547dc
Parents: 936edf8
Author: Garren Smith <ga...@gmail.com>
Authored: Thu Dec 12 17:35:19 2013 +0200
Committer: Garren Smith <ga...@gmail.com>
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>