#1412个人主页--课程--当该用户加入多个课程时,建议“关闭课程”字样对齐

This commit is contained in:
z9hang 2014-10-28 16:27:13 +08:00
parent 887a3cbe46
commit 65a89bb9a5
1 changed files with 2 additions and 1 deletions

View File

@ -15,11 +15,12 @@
<% if User.current == @user %>
<% (membership.roles).each do |role| %>
<% unless (role == Role.find(9) || role == Role.find(3)) %>
<%= join_in_course(membership.course, User.current) %>&nbsp;&nbsp;&nbsp;&nbsp;
<%= join_in_course(membership.course, User.current) %>
<% end %>
<% end %>
<% else %>
<% end %>
&nbsp;&nbsp;&nbsp;&nbsp;
<%= l(:label_x_base_courses_member, :count => membership.course.members.count) %>
(<%= "#{membership.course.members.count}" %>)&nbsp;&nbsp;
<%= l(:label_homework) %>