17 lines
612 B
Plaintext
17 lines
612 B
Plaintext
<div class="content-title-top">
|
|
<% 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 => 'courses', :action => 'new'}, :class => 'icon icon-add' %>
|
|
</p>
|
|
<% end %>
|
|
<% else %>
|
|
<%= render partial: 'course_list_have_entity' %>
|
|
<% end %>
|
|
</div>
|