couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject [09/17] couchdb commit: updated refs/heads/1.6.x to 6f06749
Date Tue, 15 Apr 2014 08:44:48 GMT
Fauxton: remove the hidden tabs

Closes #200


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

Branch: refs/heads/1.6.x
Commit: 75fd476f2f4b62a9d3a82b9bd9e68737df1b2c5f
Parents: 7db8564
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Mon Mar 31 22:59:32 2014 +0200
Committer: suelockwood <deathbear@apache.org>
Committed: Mon Apr 14 14:40:15 2014 -0400

----------------------------------------------------------------------
 src/Makefile.am                                 |  1 -
 src/fauxton/app/addons/documents/routes.js      |  6 ----
 .../app/addons/documents/templates/tabs.html    | 18 ------------
 src/fauxton/app/addons/documents/views.js       | 30 --------------------
 4 files changed, 55 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/75fd476f/src/Makefile.am
----------------------------------------------------------------------
diff --git a/src/Makefile.am b/src/Makefile.am
index a0d1557..c574c6e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -188,7 +188,6 @@ FAUXTON_FILES = \
     fauxton/app/addons/documents/templates/jumpdoc.html \
     fauxton/app/addons/documents/templates/search.html \
     fauxton/app/addons/documents/templates/sidebar.html \
-    fauxton/app/addons/documents/templates/tabs.html \
     fauxton/app/addons/documents/templates/upload_modal.html \
     fauxton/app/addons/documents/templates/view_editor.html \
     fauxton/app/addons/documents/tests/resourcesSpec.js \

http://git-wip-us.apache.org/repos/asf/couchdb/blob/75fd476f/src/fauxton/app/addons/documents/routes.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/documents/routes.js b/src/fauxton/app/addons/documents/routes.js
index 3bf8f7e..5497a30 100644
--- a/src/fauxton/app/addons/documents/routes.js
+++ b/src/fauxton/app/addons/documents/routes.js
@@ -485,12 +485,6 @@ function(app, FauxtonAPI, Documents, Databases) {
       var docParams = app.getParams();
 
       this.database.buildChanges(docParams);
-
-      this.setView("#tabs", new Documents.Views.Tabs({
-        collection: this.designDocs,
-        database: this.database,
-        active_id: 'changes'
-      }));
     },
 
     changes: function (event) {

http://git-wip-us.apache.org/repos/asf/couchdb/blob/75fd476f/src/fauxton/app/addons/documents/templates/tabs.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/documents/templates/tabs.html b/src/fauxton/app/addons/documents/templates/tabs.html
deleted file mode 100644
index f8b0c4b..0000000
--- a/src/fauxton/app/addons/documents/templates/tabs.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<!--
-Licensed under the Apache License, Version 2.0 (the "License"); you may not
-use this file except in compliance with the License. You may obtain a copy of
-the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-License for the specific language governing permissions and limitations under
-the License.
--->
-
-<ul class="nav nav-tabs">
-  <li class="active"><a href="<%= db_url %>">Docs</a></li>
-  <li id="changes"><a  href="<%= changes_url %>">Changes</a></li>
-</ul>

http://git-wip-us.apache.org/repos/asf/couchdb/blob/75fd476f/src/fauxton/app/addons/documents/views.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/documents/views.js b/src/fauxton/app/addons/documents/views.js
index eba2b1b..7892d18 100644
--- a/src/fauxton/app/addons/documents/views.js
+++ b/src/fauxton/app/addons/documents/views.js
@@ -34,36 +34,6 @@ define([
 function(app, FauxtonAPI, Components, Documents, Databases, pouchdb,
          resizeColumns, beautify, prettify, ZeroClipboard) {
   var Views = {};
-  Views.Tabs = FauxtonAPI.View.extend({
-    template: "addons/documents/templates/tabs",
-    initialize: function(options){
-      this.collection = options.collection;
-      this.database = options.database;
-      this.active_id = options.active_id;
-    },
-
-    serialize: function () {
-      return {
-        // TODO make this not hard coded here
-        changes_url: '#' + this.database.url('changes'),
-        db_url: '#' + this.database.url('index') + '?limit=' + Databases.DocLimit,
-      };
-    },
-
-    beforeRender: function(manage) {
-      this.insertView("#search", new Views.SearchBox({
-        collection: this.collection,
-        database: this.database.id
-      }));
-    },
-
-    afterRender: function () {
-      if (this.active_id) {
-        this.$('.active').removeClass('active');
-        this.$('#'+this.active_id).addClass('active');
-      }
-    }
-  });
 
   Views.SearchBox = FauxtonAPI.View.extend({
     template: "addons/documents/templates/search",


Mime
View raw message