<% if @role.to_i == 1 %>

<%= @subPage_title %>

<% if User.current.allowed_to?(:as_teacher,@course) %> <%=link_to "成员管理", {:controller => 'courses', :action => 'settings', :id => @course.id, :tab=>'member'}, :class => 'link-blue fr mt5' %> <% end %>
<%= render :partial => 'course_teacher', :locals => {:members => @members} %>
<% else %>
<%= render :partial => 'course_member_opr' %>
<%= render :partial => 'course_student', :locals => {:members => @members} %>
<% end %>