2013-11-08 20:54:45 +08:00
|
|
|
<div class="content-title-top">
|
2014-05-21 18:21:57 +08:00
|
|
|
<% if @memberships.empty? %>
|
|
|
|
<% if @user != User.current %>
|
|
|
|
<p class="font_description">
|
|
|
|
<%= l(:label_project_course_un) %>
|
|
|
|
</p>
|
|
|
|
<% else %>
|
|
|
|
<p class="font_description">
|
|
|
|
<!--teacher could create the course directly-->
|
|
|
|
<%= l(:label_project_course_unadd) %><%= link_to "#{l(:label_course_new)}", {:controller => 'projects', :action => 'new', :course => 1, :project_type => 1}, :class => 'icon icon-add' %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= render partial: 'course_list_have_entity' %>
|
|
|
|
<% end %>
|
2013-09-12 17:19:51 +08:00
|
|
|
</div>
|