revert memo lz download <a>(has problems with delete.)

This commit is contained in:
yanxd 2013-12-03 11:22:48 +08:00
parent 5914fb218c
commit 7085e502d6
1 changed files with 3 additions and 4 deletions

View File

@ -101,9 +101,8 @@
<%= raw @memo.content %>
<p>
<% 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 %>
</p>
</div>
@ -150,7 +149,7 @@
<!-- <div class="wiki">< %=h reply.content.html_safe %></div> -->
<p>
<% if reply.attachments.any?%>
<% options = {:author => true} %>
<% options = {:author => true, :deletable => true} %>
<%= render :partial => 'attachments/links', :locals => {:attachments => reply.attachments, :options => options} %>
<% end %>
</p>