2013-11-08 20:54:45 +08:00
|
|
|
<div class="content-title-top">
|
2013-10-31 15:18:42 +08:00
|
|
|
<% if @memberships.empty? %>
|
2013-10-07 22:50:20 +08:00
|
|
|
<% if @user != User.current %>
|
|
|
|
<p class="font_description">
|
|
|
|
<%= l(:label_project_course_un) %>
|
|
|
|
</p>
|
|
|
|
<% else %>
|
|
|
|
<p class="font_description">
|
2013-10-31 15:18:42 +08:00
|
|
|
|
|
|
|
<%= l(:label_project_cousre_studentun) %><%= link_to"#{l(:label_course_join_student)}",{:controller=>'projects',:action=>'course', :course => 1}, :class => 'icon icon-add' %>
|
2013-10-09 16:14:11 +08:00
|
|
|
</p>
|
2013-10-07 22:50:20 +08:00
|
|
|
<% end %>
|
2013-10-31 15:18:42 +08:00
|
|
|
<% else %>
|
|
|
|
<p><%= link_to"#{l(:label_course_view_student)}",{:controller=>'projects',:action=>'course', :course => 1}, :class => 'icon icon-add' %></p>
|
2014-01-24 17:13:51 +08:00
|
|
|
<%= render :partial => 'course_form', :locals => {:memberships => @memberships}%>
|
2013-10-07 22:50:20 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</div>
|