<% if @role.to_i == 1 %>
    <div class="courseRSide fl" id="homework_page_right">
        <div class="project_r_h">
          <h2 class="project_h2 fl"><%= @subPage_title%></h2>
          <% if User.current.allowed_to?(:as_teacher,@course) %>
            <span class="fr f14 fontGrey2" style="height: 40px; line-height: 40px; margin-right: 15px;">
              <%=link_to "成员管理", :controller => 'courses', :action => 'settings', :id => @course.id, :tab=>'member', :class => 'hw_more_li' %>
            </span>
          <% end %>
        </div>
        <%= render :partial => 'course_teacher', :locals => {:members => @members} %>
    </div>
<% else %>
<div class="sy_class_r sy_class_nobg fr ml10">
  <div class="sy_class_r_head mb10">
    <h3><%= @subPage_title %></h3>
    <div class="hw_more_box">
      <ul>
        <li class="hw_more_icons">
          <ul class="hw_more_txt">
            <li><%= link_to l(:label_export_excel), export_course_member_excel_course_path(@course,:format => 'xls'), :class => 'hw_more_li'%></li>
            <% if User.current.allowed_to?(:as_teacher,@course) %>
              <li>
                <%=link_to "成员管理", {:controller => 'courses', :action => 'settings', :id => @course.id, :tab => 'member'}, :class => 'hw_more_li' %>
              </li>
            <% end %>
          </ul>
        </li>
      </ul>
    </div>
  </div>
  <%= render :partial => 'course_student', :locals => {:members => @members} %>
</div>
<% end %>

