|
|
@ -34,7 +34,8 @@
|
|
|
|
<%= link_to image_tag('delete.png'), {:controller => 'attachments', :action => 'delete_homework', :id => attachment.id},
|
|
|
|
<%= link_to image_tag('delete.png'), {:controller => 'attachments', :action => 'delete_homework', :id => attachment.id},
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
:method => :delete,
|
|
|
|
:method => :delete,
|
|
|
|
:class => 'delete',
|
|
|
|
:class => 'delete delete-homework-icon',
|
|
|
|
|
|
|
|
:remote => true,
|
|
|
|
:title => l(:button_delete) %>
|
|
|
|
:title => l(:button_delete) %>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to image_tag('delete.png'), attachment_path(attachment),
|
|
|
|
<%= link_to image_tag('delete.png'), attachment_path(attachment),
|
|
|
|