socialforge/app/views/courses/member.html.erb

16 lines
633 B
Plaintext
Raw Normal View History

2015-12-04 16:13:55 +08:00
<div class="project_r_h">
<h2 class="project_h2 fl"><%= @subPage_title%></h2>
2015-12-04 16:33:56 +08:00
<% 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' %>
</span>
<% end %>
2015-12-04 16:13:55 +08:00
</div>
<% if @subPage_title == l(:label_student_list)%>
<%= render :partial => 'course_student', :locals => {:members => @members} %>
<% else%>
<%= render :partial => 'course_teacher', :locals => {:members => @members} %>
<% end%>
2015-12-11 11:23:02 +08:00