diff options
author | Russell Branca <chewbranca@gmail.com> | 2013-04-04 14:09:21 -0700 |
---|---|---|
committer | Russell Branca <chewbranca@gmail.com> | 2013-04-04 17:15:26 -0700 |
commit | d4e4b08cf385db121fe837b01814dd0867d1fd77 (patch) | |
tree | e2e69ca1646ede5a1c49178b83a6f3a57c2601c5 | |
parent | f726bc4dee4a4be0d5ed15f012cfbafd2a9dd7d7 (diff) | |
download | couchdb-d4e4b08cf385db121fe837b01814dd0867d1fd77.tar.gz |
Database list cleanup and fix doc link
-rw-r--r-- | src/fauxton/app/modules/documents/resources.js | 6 | ||||
-rw-r--r-- | src/fauxton/app/templates/databases/item.html | 5 | ||||
-rw-r--r-- | src/fauxton/app/templates/databases/list.html | 6 |
3 files changed, 6 insertions, 11 deletions
diff --git a/src/fauxton/app/modules/documents/resources.js b/src/fauxton/app/modules/documents/resources.js index 5a08fb4cd..3f072389d 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"; }, diff --git a/src/fauxton/app/templates/databases/item.html b/src/fauxton/app/templates/databases/item.html index 5ffcefdcc..32a749a4b 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> diff --git a/src/fauxton/app/templates/databases/list.html b/src/fauxton/app/templates/databases/list.html index e07dcfd15..ba871b59e 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> |