加入/退出课程权限修改
This commit is contained in:
parent
003b4704cc
commit
84327892a9
|
@ -13,8 +13,12 @@
|
|||
|
||||
</span>
|
||||
<span style="float: right">
|
||||
<% unless membership.roles.first.to_s == 'Manager' %>
|
||||
<%= join_in_course(membership.project, User.current)%>
|
||||
<% if User.current == @user %>
|
||||
<% unless membership.roles.first.to_s == 'Manager' %>
|
||||
<%= join_in_course(membership.project, User.current)%>
|
||||
<% end %>
|
||||
<% else %>
|
||||
|
||||
<% end %>
|
||||
<%= l(:label_x_base_courses_member, :count => membership.project.members.count) %>(<%= link_to "#{membership.project.members.count}", project_member_path(membership.project), :course =>'1' %>)
|
||||
<%= l(:label_homework) %> (<span class=""><%= link_to (membership.project.homeworks.count), {:controller => 'projects', :action => 'homework', :id => membership.project.identifier} %></span>)
|
||||
|
|
Loading…
Reference in New Issue