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 <[email protected]> Authored: Thu Apr 4 14:09:21 2013 -0700 Committer: Garren Smith <[email protected]> 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>
