You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/02/12 07:20:08 UTC
[14/52] [abbrv] fauxton commit: updated refs/heads/import-master to
d11b90b
Fix so that you can edit view docs, but not delete them
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/bfd419b3
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/bfd419b3
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/bfd419b3
Branch: refs/heads/import-master
Commit: bfd419b378004ace9abea0232c15c9d602dba142
Parents: 404c691
Author: suelockwood <de...@apache.org>
Authored: Mon Jan 13 15:27:21 2014 -0500
Committer: suelockwood <de...@apache.org>
Committed: Mon Jan 13 15:27:21 2014 -0500
----------------------------------------------------------------------
app/addons/documents/templates/index_row_docular.html | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/bfd419b3/app/addons/documents/templates/index_row_docular.html
----------------------------------------------------------------------
diff --git a/app/addons/documents/templates/index_row_docular.html b/app/addons/documents/templates/index_row_docular.html
index f1b2217..446a031 100644
--- a/app/addons/documents/templates/index_row_docular.html
+++ b/app/addons/documents/templates/index_row_docular.html
@@ -17,11 +17,13 @@ the License.
<td>
<div>
<pre class="prettyprint"><%- doc.prettyJSON() %></pre>
- <% if (doc.isEditable()) { %>
+
<div class="btn-group">
<a href="#<%= doc.url('app') %>" class="btn btn-small edits">Edit <%= doc.docType() %></a>
- <button href="#" class="btn btn-small btn-danger delete" title="Delete this document."><i class="icon icon-trash"></i></button>
+ <% if (doc.isEditable()) { %>
+ <button href="#" class="btn btn-small btn-danger delete" title="Delete this document."><i class="icon icon-trash"></i></button>
+ <% } %>
</div>
- <% } %>
+
</div>
</td>