couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject git commit: updated refs/heads/master to 8a33322
Date Mon, 16 Sep 2013 14:48:51 GMT
Updated Branches:
  refs/heads/master b865a1dc2 -> 8a3332270


COUCHDB-1759 Fixing messaging in empty dbs.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/8a333227
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/8a333227
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/8a333227

Branch: refs/heads/master
Commit: 8a33322704ca03a09849a6a72ddbb16ff444071f
Parents: b865a1d
Author: suelockwood <deathbearbrown@gmail.com>
Authored: Mon Sep 16 10:48:24 2013 -0400
Committer: suelockwood <deathbearbrown@gmail.com>
Committed: Mon Sep 16 10:48:24 2013 -0400

----------------------------------------------------------------------
 src/fauxton/app/modules/documents/views.js             | 1 +
 src/fauxton/app/templates/documents/all_docs_list.html | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/8a333227/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 148dc76..40f610e 100644
--- a/src/fauxton/app/modules/documents/views.js
+++ b/src/fauxton/app/modules/documents/views.js
@@ -466,6 +466,7 @@ function(app, FauxtonAPI, Paginate, Documents, pouchdb, Codemirror, JSHint,
resi
       recordStart = this.collection.recordStart();
 
       var info = {
+        database: this.collection.database.id,
         updateSeq: updateSeq,
         offset: recordStart,
         totalRows: totalRows,

http://git-wip-us.apache.org/repos/asf/couchdb/blob/8a333227/src/fauxton/app/templates/documents/all_docs_list.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/templates/documents/all_docs_list.html b/src/fauxton/app/templates/documents/all_docs_list.html
index e5ab8ac..43a5532 100644
--- a/src/fauxton/app/templates/documents/all_docs_list.html
+++ b/src/fauxton/app/templates/documents/all_docs_list.html
@@ -28,7 +28,12 @@ the License.
     </div>
   <% } %>
   <p>
-  Showing <%=offset%> - <%= numModels %> of <%= totalRows %> rows
+
+  <% if (totalRows === "unknown"){ %>
+    Showing 0 documents. <a href="#/database/<%=database%>/new"> Create your
first document.</a>
+  <% } else { %>
+    Showing <%=offset%> - <%= numModels %> of <%= totalRows %> rows
+  <%}%>
     <% if (updateSeq) { %>
       -- Update Sequence: <%= updateSeq %>
     <% } %>


Mime
View raw message