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

exceptionHandle
yanxd 12 years ago
parent 5914fb218c
commit 7085e502d6

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

Loading…
Cancel
Save