From e6a724d4395125315a8d8890fe80a63ef6d41973 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Tue, 28 Apr 2015 14:57:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E4=BD=9C=E4=B8=9A=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/homework_attach/edit.html.erb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/app/views/homework_attach/edit.html.erb b/app/views/homework_attach/edit.html.erb index 19c0d9344..63c3051aa 100644 --- a/app/views/homework_attach/edit.html.erb +++ b/app/views/homework_attach/edit.html.erb @@ -79,17 +79,11 @@ - <% unless @homework.attachments.empty?%> -

- <% options = {:author => true, :deletable => attach_delete(@homework)} %> - <%= render :partial => 'attachments/links', - :locals => {:attachments => @homework.attachments, :options => options} %> -

- <% end %> -

- <%= render :partial => 'attachments/form' %> -

+
+ <%= render :partial => 'attachments/form', :locals => {:container => @homework}%> +

+