couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [2/2] fauxton commit: updated refs/heads/master to 0db3f7b
Date Thu, 03 Nov 2016 14:02:01 GMT
add correct spacing for pagination


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

Branch: refs/heads/master
Commit: 0db3f7bdb3bb4f27ed401bca0d5014dd9642337d
Parents: 45569a1
Author: Garren Smith <garren.smith@gmail.com>
Authored: Thu Nov 3 15:56:55 2016 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Thu Nov 3 15:56:55 2016 +0200

----------------------------------------------------------------------
 app/addons/databases/components.react.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/0db3f7bd/app/addons/databases/components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/databases/components.react.jsx b/app/addons/databases/components.react.jsx
index 654e0d1..2e4ad36 100644
--- a/app/addons/databases/components.react.jsx
+++ b/app/addons/databases/components.react.jsx
@@ -326,7 +326,7 @@ var DatabasePagination = React.createClass({
   render: function () {
     const {page, totalAmountOfDatabases} = this.state;
 
-    var urlPrefix = '#/' + this.props.linkPath + '?page=';
+    const urlPrefix = `#/${this.props.linkPath}?page=`;
     var start = 1 + (page - 1) * FauxtonAPI.constants.MISC.DEFAULT_PAGE_SIZE;
     var end = Math.min(totalAmountOfDatabases, page * FauxtonAPI.constants.MISC.DEFAULT_PAGE_SIZE);
 
@@ -337,8 +337,8 @@ var DatabasePagination = React.createClass({
         </div>
         <div className="current-databases">
           Showing <span className="all-db-footer__range">{start}&ndash;{end}</span>
-          of <span className="all-db-footer__total-db-count">{totalAmountOfDatabases}</span>
-          databases.
+          &nbsp;of&nbsp;<span className="all-db-footer__total-db-count">{totalAmountOfDatabases}</span>
+          &nbsp;databases.
         </div>
       </footer>
     );


Mime
View raw message