From 7085e502d61ac76481b78e6c7d2ded93e625cd25 Mon Sep 17 00:00:00 2001 From: yanxd Date: Tue, 3 Dec 2013 11:22:48 +0800 Subject: [PATCH] revert memo lz download (has problems with delete.) --- app/views/memos/show.html.erb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/memos/show.html.erb b/app/views/memos/show.html.erb index a8084d6d7..921a9d3c5 100644 --- a/app/views/memos/show.html.erb +++ b/app/views/memos/show.html.erb @@ -101,9 +101,8 @@ <%= raw @memo.content %>

<% if @memo.attachments.any?%> - <%# options = {:author => true} %> - <%= link_to_memo_attachments @memo, :author => true %> - <%#= render :partial => 'attachments/links', :locals => {:attachments => @memo.attachments, :options => options} %> + <% options = {:author => true} %> + <%= render :partial => 'attachments/links', :locals => {:attachments => @memo.attachments, :options => options} %> <% end %>

@@ -150,7 +149,7 @@

<% if reply.attachments.any?%> - <% options = {:author => true} %> + <% options = {:author => true, :deletable => true} %> <%= render :partial => 'attachments/links', :locals => {:attachments => reply.attachments, :options => options} %> <% end %>