2014-09-15 10:58:14 +08:00
|
|
|
<% if User.current.logged?%>
|
|
|
|
<% if User.current.user_extensions.identity == 0 %>
|
|
|
|
<%= link_to(l(:label_course_new), {:controller => 'courses', :action => 'new'},
|
|
|
|
:class => 'icon icon-add') if User.current.allowed_to?(:add_course,nil, :global => true) %>
|
|
|
|
<% end %>
|
2014-10-16 11:33:11 +08:00
|
|
|
|
2014-10-17 08:59:14 +08:00
|
|
|
<%= link_to l(:label_course_join_student), join_private_courses_courses_path ,:remote => true, :class => 'icon icon-add' %>
|
|
|
|
|
2014-09-15 10:58:14 +08:00
|
|
|
<% end %>
|
2014-10-17 08:59:14 +08:00
|
|
|
|
2014-09-16 10:42:17 +08:00
|
|
|
<%= link_to l(:label_more), {:controller => 'courses', :action => 'index', :school_id => school_id} %>
|