<%=@count %>
|
<%=link_to(homework.try(:name), student_work_index_path(:homework => homework.id))%>
|
<% if homework.course %>
<%= link_to homework.course.name, course_path(homework.course.id) %>
<% 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 %>
|
<%=link_to(StudentWork.where('homework_common_id=?',homework.id).count, student_work_index_path(:homework => homework.id))%>
|
<%=format_date( homework.created_at ) %>
|
<% end %>
<% end %>