summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuelockwood <deathbear@apache.org>2014-01-13 15:27:21 -0500
committersuelockwood <deathbear@apache.org>2014-01-13 15:27:21 -0500
commit61d061771adbfd8d3023e38a46225dea46701e3c (patch)
tree132061c3ba7dde269d03538926126de7d96912fd
parent86ef9eea39a8006fd1dd875975b171164c09d5e0 (diff)
downloadcouchdb-61d061771adbfd8d3023e38a46225dea46701e3c.tar.gz
Fix so that you can edit view docs, but not delete them
-rw-r--r--src/fauxton/app/addons/documents/templates/index_row_docular.html8
1 files changed, 5 insertions, 3 deletions
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 f1b221757..446a03161 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>