Homework
sw 11 years ago
parent a5202e53a4
commit b8c9651079

@ -1007,6 +1007,7 @@ class BidsController < ApplicationController
# 启动匿评 # 启动匿评
def start_anonymous_comment def start_anonymous_comment
@bid = Bid.find(params[:id]) @bid = Bid.find(params[:id])
@course = @bid.courses.first
if(@bid.comment_status == 0) if(@bid.comment_status == 0)
homeworks = @bid.homeworks homeworks = @bid.homeworks
if(homeworks && homeworks.size >= 2) if(homeworks && homeworks.size >= 2)

@ -1927,7 +1927,6 @@ module ApplicationHelper
end end
def anonymous_comment_notice(bid, course) def anonymous_comment_notice(bid, course)
link =
case bid.comment_status case bid.comment_status
when 0 when 0
@student_size ||= searchStudent(course).size @student_size ||= searchStudent(course).size

Loading…
Cancel
Save