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

<%= l(:label_project_course_un) %>

<% else %>

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

<% end %> <% else %>

<%=l(:label_course_doing)%>(<%=@memberships_doing.count%>) <%= link_to"#{l(:label_course_new)}",{:controller=>'projects',:action=>'new', :course => 1, :project_type => 1}, :class => 'icon icon-add' if @user == User.current %>

<%= l(:label_created_course) %>

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

<%= l(:label_joined_course) %>

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

<%= link_to l(:label_course_done)+"("+@memberships_done.count.to_s+")", 'javascript:void(0);', :onclick => '$("#courses_history_block").slideToggle(400);' , style:"color:#666666" if User.current.logged? %>

<% end %>