2016-09-30 17:19:57 +08:00
|
|
|
<% if @role.to_i == 1 %>
|
2016-09-28 10:00:01 +08:00
|
|
|
<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;">
|
2016-11-25 13:37:31 +08:00
|
|
|
<%=link_to "成员管理", {:controller => 'courses', :action => 'settings', :id => @course.id, :tab=>'member'}, :class => 'hw_more_li' %>
|
2016-09-28 10:00:01 +08:00
|
|
|
</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">
|
2016-11-25 13:37:31 +08:00
|
|
|
<h3 class="fl"><%= @subPage_title %></h3>
|
|
|
|
<% if User.current.allowed_to?(:as_teacher,@course) %>
|
|
|
|
<%=link_to "成员管理", {:controller => 'courses', :action => 'settings', :id => @course.id, :tab => 'member'}, :class => 'link-blue ml10 fr mt5' %>
|
|
|
|
<% end %>
|
2016-11-30 10:40:53 +08:00
|
|
|
<%= link_to "导出成绩", export_course_member_excel_course_path(@course,:format => 'xls'), :class => 'link-blue fr mt5'%>
|
2016-11-25 13:37:31 +08:00
|
|
|
<div class="cl"></div>
|
2016-09-28 10:00:01 +08:00
|
|
|
</div>
|
|
|
|
<%= render :partial => 'course_student', :locals => {:members => @members} %>
|
2015-12-04 16:13:55 +08:00
|
|
|
</div>
|
2016-09-28 10:00:01 +08:00
|
|
|
<% end %>
|
2015-12-11 11:23:02 +08:00
|
|
|
|