couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikewall...@apache.org
Subject git commit: updated refs/heads/1759-fix-_all_docs-showing-n-rows-message-for-empty-database to 710a0ba
Date Thu, 04 Apr 2013 13:15:13 GMT
Updated Branches:
  refs/heads/1759-fix-_all_docs-showing-n-rows-message-for-empty-database [created] 710a0ba42


COUCHDB-1700 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/710a0ba4
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/710a0ba4
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/710a0ba4

Branch: refs/heads/1759-fix-_all_docs-showing-n-rows-message-for-empty-database
Commit: 710a0ba4287899038eb13bd67eacc3c208ecfccc
Parents: 6187ba5
Author: Mike Wallace <mikewallace1979@googlemail.com>
Authored: Thu Apr 4 12:56:09 2013 +0100
Committer: Mike Wallace <mikewallace1979@googlemail.com>
Committed: Thu Apr 4 14:13:08 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/710a0ba4/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() %>
     <% } %>


Mime
View raw message