教师评论不能被删除
This commit is contained in:
parent
d9c3103e6e
commit
3b2c7cc0ec
|
@ -35,7 +35,7 @@
|
|||
<div class="ping_disfoot">
|
||||
<% ids = 'project_respond_form_'+ jour.id.to_s%>
|
||||
<span>
|
||||
<% if (jour.user==User.current|| User.current.admin?) && show_name %>
|
||||
<% if (jour.user==User.current|| User.current.admin?) && show_name && !show_score %>
|
||||
<%= link_to(l(:label_bid_respond_delete), {:controller => 'homework_attach', :action => 'destroy_jour', :object_id => jour, :user_id => jour.user,:jour_id =>@homework.id },
|
||||
:remote => true, :confirm => l(:text_are_you_sure), :title => l(:button_delete)) %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue