couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [30/50] git commit: updated refs/heads/route-events to c33e390
Date Thu, 09 May 2013 14:01:27 GMT
Database list cleanup and fix doc link


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

Branch: refs/heads/route-events
Commit: 5798aed5972a88a60e1ad76b554767b5eeaeedff
Parents: dde085d
Author: Russell Branca <chewbranca@gmail.com>
Authored: Thu Apr 4 14:09:21 2013 -0700
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Thu May 9 09:59:57 2013 +0200

----------------------------------------------------------------------
 src/fauxton/app/modules/documents/resources.js |    6 ++++++
 src/fauxton/app/templates/databases/item.html  |    5 -----
 src/fauxton/app/templates/databases/list.html  |    6 ------
 3 files changed, 6 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/5798aed5/src/fauxton/app/modules/documents/resources.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/documents/resources.js b/src/fauxton/app/modules/documents/resources.js
index 5a08fb4..3f07238 100644
--- a/src/fauxton/app/modules/documents/resources.js
+++ b/src/fauxton/app/modules/documents/resources.js
@@ -127,6 +127,12 @@ function(app, FauxtonAPI, Views) {
       return this.id.match(/^_design/) ? "design doc" : "doc";
     },
 
+    url: function(context) {
+      if (!this.isEditable()) return false;
+
+      return this.collection.database.url(context) + "/" + this.id;
+    },
+
     isEditable: function() {
       return this.docType() != "reduction";
     },

http://git-wip-us.apache.org/repos/asf/couchdb/blob/5798aed5/src/fauxton/app/templates/databases/item.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/templates/databases/item.html b/src/fauxton/app/templates/databases/item.html
index 5ffcefd..32a749a 100644
--- a/src/fauxton/app/templates/databases/item.html
+++ b/src/fauxton/app/templates/databases/item.html
@@ -12,11 +12,6 @@ License for the specific language governing permissions and limitations
under
 the License.
 -->
 
-<td width="10">
-  <label class="checkbox">
-    <input type="checkbox" class="row-select">
-  </label>
-</td>
 <td>
   <a href="#/database/<%= database.get("name") %>/_all_docs?limit=100"><%=
database.get("name") %></a>
 </td>

http://git-wip-us.apache.org/repos/asf/couchdb/blob/5798aed5/src/fauxton/app/templates/databases/list.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/templates/databases/list.html b/src/fauxton/app/templates/databases/list.html
index e07dcfd..ba871b5 100644
--- a/src/fauxton/app/templates/databases/list.html
+++ b/src/fauxton/app/templates/databases/list.html
@@ -13,18 +13,12 @@ the License.
 -->
 
 <div class="result-tools" style="">
-  <div class="btn-toolbar pull-left">
-    <button type="button" class="btn all" data-toggle="button">✓ All</button>
-    <button class="btn btn-small disabled bulk-delete"><i class="icon-trash"></i></button>
-  </div>
-
   <form class="navbar-form pull-right database-search">
     <input type="text" class="search-query" placeholder="Search by database name">
   </form>
 </div>
 <table class="databases table table-striped">
   <thead>
-    <th></th>
     <th>Name</th>
     <th>Size</th>
     <th>Number of Documents</th>


Mime
View raw message