<% homeworks.each do |homework| %>
    <ul class="subject-pop-row">
      <li class="subject-pop-name fl hidden">
        <label onclick="show_homework_detail('<%=show_homework_detail_user_path(@user,:homework=>homework.id,:is_import =>1) %>')">
          <input type="radio" name="checkMenu" class="mr5" style="vertical-align:middle;" value="<%= homework.id%>"/>
          <span title="<%= homework.name%>"><%= homework.name%></span>
        </label>
      </li>
      <li class="subject-pop-from fl hidden"><span title="<%=homework.course.name %>(<%=current_time_and_term(homework.course) %>)"><%=homework.course.name %>(<%=current_time_and_term_short(homework.course) %>)</span></li>
      <li class="subject-pop-type fl">
        <% case homework.homework_type %>
            <% when 1 %>
                普通
            <% when 2 %>
                编程
            <% when 3 %>
                分组
        <% end %>
      </li>
      <li class="subject-pop-publisher fl hidden"><%= homework.user.show_name %></li>
      <li class="subject-pop-count fl"><%= homework.quotes %></li>
      <li class="subject-pop-date fl"><%=format_date homework.publish_time %></li>
    </ul>
<% end %>
<script type="text/javascript">
    function show_homework_detail(url){
        $.get(
                url,
                {

                },
                function (data) {
                }
        );
    }
</script>