<%=@count %>
|
<% c_h = HomeworkCommon.find homework.homework_common_id %>
<% if c_h %>
<%=link_to(c_h.try(:name), student_work_index_path(:homework => c_h.id))%>
|
<% if c_h.course %>
<%= link_to(c_h.course.name, course_path(c_h.course.id)) %>
|
<% end %>
<%= c_h.try(:user)%><% else %><%=c_h.try(:user).try(:realname) %><% end %>'>
<% if c_h.try(:user).try(:realname) == ' '%>
<%= link_to(c_h.try(:user), user_path(c_h.user_id)) %>
<% else %>
<%= link_to(c_h.try(:user).try(:realname), user_path(c_h.user_id)) %>
<% end %>
|
<% end %>
<%= homework.try(:user)%><% else %><%=homework.try(:user).try(:realname) %><% end %>'>
<% if homework.try(:user).try(:realname) == ' '%>
<%= link_to(homework.try(:user), user_path(homework.user_id)) %>
<% else %>
<%= link_to(homework.try(:user).try(:realname), user_path(homework.user_id)) %>
<% end %>
|
<% if homework.status == 1 %>
等待回复
<% elsif homework.status == 2 %>
已通过
<% else %>
已拒绝
<% end %>
|
<%=format_date( homework.created_at ) %>
|
<% end %>
<% end %>