<div class="user_course_list menu-div">
  <div class="menu">
  <%= link_to "#{l(:label_course_new)}", new_course_path, class: 'icon icon-add' if user == User.current %>
    <ul>
      <li mode='doing' class="on"><%= l('user.courses.doing')%></li>
      <li mode='end'><%= l('user.courses.done')%></li>
    </ul>
  </div>

  <div class="dyn_list_wrapper" mode='doing'>
    <div class='created_course'>
      <%= render :partial => 'users/course_form', :locals => {:memberships => memberships_doing} %>
    </div>
  </div>

  <div class="dyn_list_wrapper hidden" mode='end'>
    <div class="created_course ">
      <%= render :partial => 'users/course_form', :locals => {:memberships => memberships_done} %>
    </div>
  </div>
</div>

