Updated Branches: refs/heads/master 86ef9eea3 -> 61d061771
Fix so that you can edit view docs, but not delete them Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/61d06177 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/61d06177 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/61d06177 Branch: refs/heads/master Commit: 61d061771adbfd8d3023e38a46225dea46701e3c Parents: 86ef9ee Author: suelockwood <deathb...@apache.org> Authored: Mon Jan 13 15:27:21 2014 -0500 Committer: suelockwood <deathb...@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/blob/61d06177/src/fauxton/app/addons/documents/templates/index_row_docular.html ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/documents/templates/index_row_docular.html b/src/fauxton/app/addons/documents/templates/index_row_docular.html index f1b2217..446a031 100644 --- a/src/fauxton/app/addons/documents/templates/index_row_docular.html +++ b/src/fauxton/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>