<%=l(:label_user_homework)%>

<%@count=@page*30 %> <% for homework in @homework do %> <% @count+=1 %> <% end %>
序号 作业名称 课程名称 作者 提交作品数 提交截止日期
<%=@count %> <%=link_to(homework.name, student_work_index_path(:homework => homework.id))%> <%= link_to(homework.course.name, course_path(homework.course.id)) %> <%= 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.end_time) %>
<% html_title(l(:label_user_homework)) -%>