You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2013/04/05 02:15:34 UTC
[4/4] git commit: updated refs/heads/master to 200eccd
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/d4e4b08c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/d4e4b08c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/d4e4b08c
Branch: refs/heads/master
Commit: d4e4b08cf385db121fe837b01814dd0867d1fd77
Parents: f726bc4
Author: Russell Branca <ch...@gmail.com>
Authored: Thu Apr 4 14:09:21 2013 -0700
Committer: Russell Branca <ch...@gmail.com>
Committed: Thu Apr 4 17:15:26 2013 -0700
----------------------------------------------------------------------
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/d4e4b08c/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/d4e4b08c/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/d4e4b08c/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>