couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject [35/64] [abbrv] fauxton commit: updated refs/heads/secondary-indexes to ef01e24
Date Wed, 23 Jul 2014 19:24:44 GMT
Fauxton: Refactor sidebar nav for new design


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

Branch: refs/heads/secondary-indexes
Commit: 72f1b76093948aeaa6042855af32116adf68e214
Parents: 3577cdb
Author: Garren Smith <garren.smith@gmail.com>
Authored: Mon May 19 18:12:44 2014 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Tue Jul 22 16:58:57 2014 +0200

----------------------------------------------------------------------
 .../templates/add_new_ddoc_fn_dropdown.html     | 31 --------------------
 app/addons/documents/views.js                   | 25 ----------------
 2 files changed, 56 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/72f1b760/app/addons/documents/templates/add_new_ddoc_fn_dropdown.html
----------------------------------------------------------------------
diff --git a/app/addons/documents/templates/add_new_ddoc_fn_dropdown.html b/app/addons/documents/templates/add_new_ddoc_fn_dropdown.html
deleted file mode 100644
index 77323a9..0000000
--- a/app/addons/documents/templates/add_new_ddoc_fn_dropdown.html
+++ /dev/null
@@ -1,31 +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.
--->
-
-<div class="dropdown">
-	<a class="dropdown-toggle icon fonticon-circle-plus" data-toggle="dropdown" href="#"
data-bypass="true"></a>
-	<ul class="dropdown-menu arrow" role="menu" aria-labelledby="dLabel">
-		<% if (full){ %>
-			<li><a class="icon fonticon-replication" href="#replicate/<%=database.id%>">Replicate</a><li>
-			<li><a class="icon fonticon-trash" href="#" data-bypass="true">Delete</a><li>
-		<%}%>
-		<li class="header-label">Add new</li>
-		<li><a class="icon fonticon-circle-plus" href="#<%= database.url('app') %>/new_view/<%=ddocSafe%>">Secondary
View</a><li>
-<!-- 	  <li><a class="icon fonticon-circle-plus" href="#<%= database.url('app')
%>/new_filter/<%=ddocSafe%>">Filter Function</a><li>
-	  <li><a class="icon fonticon-circle-plus" href="#<%= database.url('app') %>/new_show/<%=ddocSafe%>">Show
Function</a><li>
-	  <li><a class="icon fonticon-circle-plus" href="#<%= database.url('app') %>/new_list/<%=ddocSafe%>">List
function</a><li> -->
-	  <% _.each(extensionLinks, function(link) { %>
-			<li><a class="icon fonticon-circle-plus" href="#<%= database.url('app') %>/<%=link.url%>/<%=ddocSafe%>"><%=link.title%></a><li>
-    <%});%>
-	</ul>
-</div>

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/72f1b760/app/addons/documents/views.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/views.js b/app/addons/documents/views.js
index 461ceec..c88ff39 100644
--- a/app/addons/documents/views.js
+++ b/app/addons/documents/views.js
@@ -1833,31 +1833,6 @@ function(app, FauxtonAPI, Components, Documents, Views, Databases,
pouchdb,
     }
   });
 
-
-  Views.newMenuDropdown = FauxtonAPI.View.extend({
-    template: "addons/documents/templates/add_new_ddoc_fn_dropdown",
-    tagName: "div",
-    className: "dropdown",
-    initialize: function(options){
-      this.database = options.database;
-      this.fullMenu = options.fullMenu;
-      this.ddocSafeName = options.ddocSafeName || "";
-    },
-    serialize: function(){
-      var sidebarItem = FauxtonAPI.getExtensions('sidebar:links');
-      return {
-        extensionLinks: sidebarItem,
-        database: this.database,
-        ddocSafe: this.ddocSafeName,
-        full:  this.fullMenu
-      };
-    }
-  });
-
-
-  Views.temp = FauxtonAPI.View.extend({
-  });
-
   Views.DdocInfo = FauxtonAPI.View.extend({
     template: "addons/documents/templates/ddoc_info",
 


Mime
View raw message