You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by mi...@apache.org on 2013/04/04 15:31:38 UTC

git commit: updated refs/heads/1759-fix-_all_docs-showing-n-rows-message-for-empty-database to 7f49c6c

Updated Branches:
  refs/heads/1759-fix-_all_docs-showing-n-rows-message-for-empty-database 710a0ba42 -> 7f49c6c37 (forced update)


COUCHDB-1759 Fix _all_docs message for 0 rows


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

Branch: refs/heads/1759-fix-_all_docs-showing-n-rows-message-for-empty-database
Commit: 7f49c6c378c5ccd54ae78a380003de718e695da7
Parents: 6187ba5
Author: Mike Wallace <mi...@googlemail.com>
Authored: Thu Apr 4 12:56:09 2013 +0100
Committer: Mike Wallace <mi...@googlemail.com>
Committed: Thu Apr 4 14:30:16 2013 +0100

----------------------------------------------------------------------
 .../app/templates/documents/all_docs_list.html     |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/7f49c6c3/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 2f63af0..186b538 100644
--- a/src/fauxton/app/templates/documents/all_docs_list.html
+++ b/src/fauxton/app/templates/documents/all_docs_list.html
@@ -116,7 +116,12 @@ the License.
 
 
   <p>
-    Showing 1-<%= database.models.length %> of <%= database.totalRows() %> rows
+    Showing
+    <% if (database.models.length > 0) { %>
+      1-<%= database.models.length %> of <%= database.totalRows() %> rows
+    <% } else{ %>
+      0 documents. <a href="#/database/test/new">Create your first document</a>.
+    <% } %>
     <% if (database.updateSeq()) { %>
       -- Update Sequence: <%= database.updateSeq() %>
     <% } %>