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

21 lines
855 B
Plaintext
Raw Normal View History

2016-09-30 17:19:57 +08:00
<% if @role.to_i == 1 %>
2016-12-12 10:55:19 +08:00
<div class="sy_class_r sy_class_nobg fr ml10">
<div class="sy_class_r_head mb10">
<h3 class="fl"><%= @subPage_title %></h3>
2016-09-28 10:00:01 +08:00
<% if User.current.allowed_to?(:as_teacher,@course) %>
2016-12-12 10:55:19 +08:00
<%=link_to "成员管理", {:controller => 'courses', :action => 'settings', :id => @course.id, :tab=>'member'}, :class => 'link-blue fr mt5' %>
2016-09-28 10:00:01 +08:00
<% end %>
2016-12-12 10:55:19 +08:00
<div class="cl"></div>
2016-09-28 10:00:01 +08:00
</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" id="course_member_opr">
<%= render :partial => 'course_member_opr' %>
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