<% homeworks.each do |homework| %>
<%= homework.name%>
<%=homework.course.name %>(<%=current_time_and_term_short(homework.course) %>)
<% case homework.homework_type %> <% when 1 %> 普通 <% when 2 %> 编程 <% when 3 %> 分组 <% end %>
<%= homework.user.show_name %>
<%= homework.quotes %>
<%=format_date homework.publish_time %>
<% end %>