<%=l(:label_user_homework)%>

<%@count=@page*30 %> <% for homework in @homework do %> <% unless homework.nil? %> <% @count+=1 %> <% if homework.course %> <% end %> <% end %> <% end %>
序号 作业名称 课程名称 作者 提交作品数 作业发布日期
<%=@count %> <%=link_to(homework.try(: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.created_at ) %>
<% html_title(l(:label_user_homework)) -%>