<% if hasCourse %>
    <li  id="course_loggedas_li" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
      <%=link_to l(:label_my_course), user_courses_user_path(User.current.id) %>
      <ul class="course_sub_menu">
        <% course_index = 0 %>

        <%  User.current.courses.each do |course| %>
            <% if !course_endTime_timeout?(course) %>
                <%= render :partial => 'layouts/user_homework_list', :locals => {:course => course,:course_index => course_index} %>
                <% course_index += 1 %>
            <% end %>
        <% end %>

      </ul>
    </li>
<% end %>