去掉教师列表的学号

This commit is contained in:
z9hang 2014-09-30 11:11:19 +08:00
parent 2ce07955c1
commit 2f2c6c39b5
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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"> &nbsp;

View File

@ -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