@ -53,4 +53,9 @@ module GitHelper
container.update_attributes!(:repo_name => new_repo_name)
end
#实训题的关卡url初始化
def challenge_path(path)
cha_path = path.present? ? path.split(";") : []
cha_path.reject(&:blank?)[0].try(:strip)
@ -1,6 +1,7 @@
# 所有的方法请按首字母的顺序依次列出
module ApplicationHelper
include Educoder::I18n
include GitHelper
ONE_MINUTE = 60 * 1000
ONE_HOUR = 60 * ONE_MINUTE
@ -333,11 +334,6 @@ module ApplicationHelper
raw arr.join('')
@ -1,5 +1,6 @@
module ExercisesHelper
# include GitHelper
#获取每个学生对每个题的答案状态
def get_each_student_exercise(exercise_id,exercise_questions,user_id)