You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2013/03/15 17:53:44 UTC
[16/27] git commit: Update all docs and all design docs links
Update all docs and all design docs links
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/3293c1d4
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/3293c1d4
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/3293c1d4
Branch: refs/heads/fauxton
Commit: 3293c1d4d732048eed063cdb7c654d81e8ef8eeb
Parents: 1bb903b
Author: Russell Branca <ch...@gmail.com>
Authored: Mon Mar 11 17:24:10 2013 -0700
Committer: Russell Branca <ch...@gmail.com>
Committed: Mon Mar 11 17:24:10 2013 -0700
----------------------------------------------------------------------
src/fauxton/app/modules/databases/resources.js | 2 +-
src/fauxton/app/modules/documents/views.js | 5 +----
src/fauxton/app/templates/databases/sidebar.html | 2 +-
src/fauxton/app/templates/documents/sidebar.html | 4 ++--
4 files changed, 5 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/3293c1d4/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 2b8f3ec..5549a70 100644
--- a/src/fauxton/app/modules/databases/resources.js
+++ b/src/fauxton/app/modules/databases/resources.js
@@ -46,7 +46,7 @@ function(app, FauxtonAPI, Documents) {
url: function(context) {
if (context === "index") {
return "/database/" + this.id + "/_all_docs";
- } else if (context === "changes") {
+ } else if (context === "changes") {
return "/database/" + this.id + "/_changes?descending=true&limit=100";
} else if (context === "app") {
return "/database/" + this.id;
http://git-wip-us.apache.org/repos/asf/couchdb/blob/3293c1d4/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 70ebb6a..9b4bb71 100644
--- a/src/fauxton/app/modules/documents/views.js
+++ b/src/fauxton/app/modules/documents/views.js
@@ -854,10 +854,7 @@ function(app, FauxtonAPI, Codemirror, JSHint) {
Views.Sidebar = FauxtonAPI.View.extend({
template: "templates/documents/sidebar",
events: {
- "click a.new#index": "newIndex",
- // "click .nav-list.views a.toggle-view": "toggleView",
- "click .nav-list a.toggle-view#all-docs": "toggleView",
- "click .nav-list a.toggle-view#design-docs": "toggleView"
+ "click a.new#index": "newIndex"
},
initialize: function(options) {
http://git-wip-us.apache.org/repos/asf/couchdb/blob/3293c1d4/src/fauxton/app/templates/databases/sidebar.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/templates/databases/sidebar.html b/src/fauxton/app/templates/databases/sidebar.html
index 7f01cd6..35cd860 100644
--- a/src/fauxton/app/templates/databases/sidebar.html
+++ b/src/fauxton/app/templates/databases/sidebar.html
@@ -22,4 +22,4 @@ the License.
<div class="well">
<p>Here be news.</p>
</div>
-<img src="img/couchdblogo.png"/>
\ No newline at end of file
+<a href="http://couchdb.org" target="_couchdb"><img src="img/couchdblogo.png"/></a>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/couchdb/blob/3293c1d4/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 4dbe062..7a0ecdf 100644
--- a/src/fauxton/app/templates/documents/sidebar.html
+++ b/src/fauxton/app/templates/documents/sidebar.html
@@ -19,8 +19,8 @@ the License.
</div>
<hr>
<ul class="nav nav-list">
- <li class="active"><a id="all-docs" href="/_all_docs" class="toggle-view"><i class="icon-list"></i> All documents</a></li>
- <li><a id="design-docs" href='/_all_docs?start_key="_design"&end_key="_e"' class="toggle-view"><i class="icon-list"></i> All design docs</a></li>
+ <li class="active"><a id="all-docs" href="#<%= database.url('index') %>?limit=100" class="toggle-view"><i class="icon-list"></i> All documents</a></li>
+ <li><a id="design-docs" href='#<%= database.url("index") %>?limit=100&start_key="_design"&end_key="_e"' class="toggle-view"><i class="icon-list"></i> All design docs</a></li>
</ul>
<ul class="nav nav-list views">
<li class="nav-header">Secondary Indexes</li>