2014-06-27 10:50:23 +08:00
|
|
|
<div class="content-title-top" id="content-title-top-div">
|
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-->
|
2014-06-04 15:47:09 +08:00
|
|
|
<%= l(:label_project_course_unadd) %><%= link_to "#{l(:label_course_new)}", {:controller => 'courses', :action => 'new'}, :class => 'icon icon-add' %>
|
2014-05-21 18:21:57 +08:00
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= render partial: 'course_list_have_entity' %>
|
|
|
|
<% end %>
|
2013-09-12 17:19:51 +08:00
|
|
|
</div>
|