Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1EF8FB06 for ; Fri, 5 Apr 2013 00:15:32 +0000 (UTC) Received: (qmail 72234 invoked by uid 500); 5 Apr 2013 00:15:32 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 72111 invoked by uid 500); 5 Apr 2013 00:15:32 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 71935 invoked by uid 99); 5 Apr 2013 00:15:32 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 00:15:32 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id CA6A41E1C4; Fri, 5 Apr 2013 00:15:31 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: chewbranca@apache.org To: commits@couchdb.apache.org Date: Fri, 05 Apr 2013 00:15:34 -0000 Message-Id: In-Reply-To: <58923e38a0114345bc592a7ddbd4bb2e@git.apache.org> References: <58923e38a0114345bc592a7ddbd4bb2e@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [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 Authored: Thu Apr 4 14:09:21 2013 -0700 Committer: Russell Branca 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. --> - - - /_all_docs?limit=100"><%= database.get("name") %> 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. -->
-
- - -
-
-
Name Size Number of Documents