<% 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 => 'hw_more_li' %> <% end %>
<%= render :partial => 'course_teacher', :locals => {:members => @members} %>
<% else %>

<%= @subPage_title %>

    • <%= link_to l(:label_export_excel), export_course_member_excel_course_path(@course,:format => 'xls'), :class => 'hw_more_li'%>
    • <% if User.current.allowed_to?(:as_teacher,@course) %>
    • <%=link_to "成员管理", {:controller => 'courses', :action => 'settings', :id => @course.id, :tab => 'member'}, :class => 'hw_more_li' %>
    • <% end %>
<%= render :partial => 'course_student', :locals => {:members => @members} %>
<% end %>