summaryrefslogtreecommitdiffstats
path: root/app/views/attachments/_links.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/attachments/_links.html.erb')
-rw-r--r--app/views/attachments/_links.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/attachments/_links.html.erb b/app/views/attachments/_links.html.erb
index cc54b0137..001a038db 100644
--- a/app/views/attachments/_links.html.erb
+++ b/app/views/attachments/_links.html.erb
@@ -2,7 +2,7 @@
<div class="contextual">
<%= link_to image_tag('edit.png'),
container_attachments_edit_path(container),
- :title => l(:label_edit_attachments) if attachments.any?(&:editable?) %>
+ :title => l(:label_edit_attachments) if options[:editable] %>
</div>
<% for attachment in attachments %>
<p><%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%>