summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Kowalski <rok@kowalski.gd>2014-03-31 22:59:32 +0200
committersuelockwood <deathbear@apache.org>2014-04-14 14:40:15 -0400
commit75fd476f2f4b62a9d3a82b9bd9e68737df1b2c5f (patch)
tree6287a662569b63b2668d598661ebf4cf2d7aa7eb
parent7db856433e751c8b4bd82fad5ee265746cde765e (diff)
downloadcouchdb-75fd476f2f4b62a9d3a82b9bd9e68737df1b2c5f.tar.gz
Fauxton: remove the hidden tabs
Closes #200
-rw-r--r--src/Makefile.am1
-rw-r--r--src/fauxton/app/addons/documents/routes.js6
-rw-r--r--src/fauxton/app/addons/documents/templates/tabs.html18
-rw-r--r--src/fauxton/app/addons/documents/views.js30
4 files changed, 0 insertions, 55 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index a0d1557ae..c574c6e17 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 \
diff --git a/src/fauxton/app/addons/documents/routes.js b/src/fauxton/app/addons/documents/routes.js
index 3bf8f7ebe..5497a3039 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) {
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 f8b0c4b44..000000000
--- 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>
diff --git a/src/fauxton/app/addons/documents/views.js b/src/fauxton/app/addons/documents/views.js
index eba2b1b75..7892d182c 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",