去掉教师列表的学号
This commit is contained in:
parent
2ce07955c1
commit
2f2c6c39b5
|
@ -175,7 +175,7 @@ class CoursesController < ApplicationController
|
|||
## 有角色参数的才是课程,没有的就是项目
|
||||
@render_file = 'member_list'
|
||||
@teachers= searchTeacherAndAssistant(@course)
|
||||
@canShowCode = isCourseTeacher(User.current.id,@course)
|
||||
@canShowCode = isCourseTeacher(User.current.id,@course) && params[:role] != '1'
|
||||
case params[:role]
|
||||
when '1'
|
||||
@subPage_title = l :label_teacher_list
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<% end %>
|
||||
<!--teacher's code disapeared moified by huang-->
|
||||
|
||||
<%if @canShowCode%>
|
||||
<% if @canShowCode %>
|
||||
<%= content_tag "p", "#{l(:label_bidding_user_studentcode)}#{' : '}#{member.user.user_extensions.student_id}", :class => "nomargin avatar_name" %>
|
||||
<% end %>
|
||||
<div class ="clear avatar_name">
|
||||
|
|
|
@ -3,6 +3,7 @@ task :user_new_score do
|
|||
puts "user_score sync."
|
||||
end
|
||||
|
||||
#速度太慢,不用
|
||||
namespace :user_new_score do
|
||||
desc "calculating user score"
|
||||
task :calculating => :environment do
|
||||
|
|
Loading…
Reference in New Issue