<% if @memberships.empty? %> <% if @user != User.current %>

<%= l(:label_project_course_un) %>

<% else %>

<%= l(:label_project_cousre_studentun) %><%= link_to"#{l(:label_course_join_student)}",{:controller=>'projects',:action=>'course', :course => 1}, :class => 'icon icon-add' %>

<% end %> <% else %>

<%=l(:label_course_doing)%>(<%=@memberships_doing.count%>) <%= link_to"#{l(:label_course_view_student)}",{:controller=>'projects',:action=>'course', :course => 1}, :class => 'icon icon-add' %>

<%= render :partial => 'course_form', :locals => {:memberships => @memberships_doing}%>

<%=l(:label_course_done)%>(<%=@memberships_done.count%>)

<%= render :partial => 'course_form', :locals => {:memberships => @memberships_done}%>
<% end %>