Merge remote-tracking branch 'origin/develop' into develop

courseware
杨树明 5 years ago
commit 9addf02df2

@ -477,6 +477,8 @@ class StudentWorksController < ApplicationController
@user_evaluate_count = 0
end
@view_tpi = ((@user_course_identity < Course::STUDENT && current_user.is_certification_teacher) || current_user.admin_or_business?) && @work.myshixun.present?
# 图形效率图的数据
@echart_data = student_efficiency(@homework, @work) if @work.myshixun
end

@ -87,4 +87,6 @@ if @shixun
end
end
json.view_tpi @view_tpi

@ -64,6 +64,7 @@ zh-CN:
description: '章节描述'
attachment:
description: '资源描述'
link: '链接'
message:
subject: '标题'
message_detail:

Loading…
Cancel
Save