couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject [02/48] fauxton commit: updated refs/heads/secondary-indexes to 8688d16
Date Mon, 25 Aug 2014 13:39:42 GMT
Sidebar: Do not show version on a collapsed view

There is not enough space for showing the version on a collapsed
sidebar.

COUCHDB-2234


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

Branch: refs/heads/secondary-indexes
Commit: 6e11deecb83879af9940ed95a52b031631ebdeed
Parents: b7fc5f4
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Sat Aug 9 21:27:40 2014 +0200
Committer: Robert Kowalski <rok@kowalski.gd>
Committed: Thu Aug 14 21:12:18 2014 +0200

----------------------------------------------------------------------
 app/addons/fauxton/base.js                | 2 +-
 app/addons/fauxton/templates/nav_bar.html | 2 +-
 assets/less/fauxton.less                  | 7 ++++++-
 3 files changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/6e11deec/app/addons/fauxton/base.js
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/base.js b/app/addons/fauxton/base.js
index 00f73a7..8b88d36 100644
--- a/app/addons/fauxton/base.js
+++ b/app/addons/fauxton/base.js
@@ -237,7 +237,7 @@ function(app, FauxtonAPI, resizeColumns, Components, ZeroClipboard) {
     },
 
     beforeRender: function () {
-      this.insertView(".version", this.versionFooter);
+      this.insertView(".js-version", this.versionFooter);
       this.addLinkViews();
     },
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/6e11deec/app/addons/fauxton/templates/nav_bar.html
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/templates/nav_bar.html b/app/addons/fauxton/templates/nav_bar.html
index f33399d..93c45df 100644
--- a/app/addons/fauxton/templates/nav_bar.html
+++ b/app/addons/fauxton/templates/nav_bar.html
@@ -70,5 +70,5 @@ the License.
       <% }); %>
     </ul>
   </div>
-  <div class="version"></div>
+  <div class="js-version"></div>
 </div>

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/6e11deec/assets/less/fauxton.less
----------------------------------------------------------------------
diff --git a/assets/less/fauxton.less b/assets/less/fauxton.less
index 10b1e78..88d2293 100644
--- a/assets/less/fauxton.less
+++ b/assets/less/fauxton.less
@@ -344,11 +344,16 @@ table.databases {
   bottom: 0;
   background-color: @primaryNav;
   overflow-y: scroll;
-  .version {
+  .js-version {
     color: #fff;
     font-size: 10px;
     padding-left: 10px;
   }
+  .closeMenu & {
+    .js-version {
+      display: none;
+    }
+  }
   #footer-links{
     position: absolute;
     bottom: 0;


Mime
View raw message