<%= image_tag(url_to_avatar(homework.user), :class => "avatar")%> |
<%= link_to homework.user, user_path(homework.user)%> 提交了作业 |
<%= l(:label_bidding_user_studentcode) %> :<%= homework.user.user_extensions.student_id%> |
<% if (User.current == homework.user) || (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ? or id =?',3,7, 9)).size >0) %>
<% options = {:author => true, :deletable => attach_delete(homework)} %>
<%= render :partial => 'attachments/links',
:locals => {:attachments => homework.attachments, :options => options} %>
<% end %>
|
|