diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index d5eac556a..d12b1ba34 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -29,6 +29,7 @@ class GamesController < ApplicationController # @st 0 实践任务 1 多选任务 2 单选任务 def show # 展示全部实训 + @is_subject = params[:is_subject] if @game.status == 1 # 放置页面ajax数据还没获取就关闭 @game.update_attribute(:status, 0) diff --git a/app/controllers/myshixuns_controller.rb b/app/controllers/myshixuns_controller.rb index 1c7aef02c..813c790b4 100644 --- a/app/controllers/myshixuns_controller.rb +++ b/app/controllers/myshixuns_controller.rb @@ -98,7 +98,7 @@ class MyshixunsController < ApplicationController raise("实训云平台繁忙(繁忙等级:87)") end end - redirect_to shixun_exec_shixun_path(shixun, :type => 1) + redirect_to shixun_exec_shixun_path(shixun, :type => 1, :is_subject => params[:is_subject]) rescue Exception => e flash[:error] = "实训云平台繁忙(繁忙等级:89)" g.delete_project(@myshixun.gpid) if !g_project.try(:id).nil? diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 07710ead0..c398d388c 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -384,7 +384,7 @@ class ShixunsController < ApplicationController myshixun = Myshixun.where(:user_id => User.current.id, :shixun_id => @shixun.id).first unless myshixun.blank? logger.info("current task id is #{myshixun.current_task}") - redirect_to myshixun_game_path(myshixun.current_task, :myshixun_id => myshixun) + redirect_to myshixun_game_path(myshixun.current_task, :myshixun_id => myshixun, :is_subject => params[:is_subject]) return end ActiveRecord::Base.transaction do @@ -436,7 +436,7 @@ class ShixunsController < ApplicationController raise("实训云平台繁忙(繁忙等级:81)") end logger.info("myshixun id si #{myshixun.id} and current_task id is#{myshixun.current_task.id}") - redirect_to myshixun_game_path(myshixun.current_task, :myshixun_id => myshixun) + redirect_to myshixun_game_path(myshixun.current_task, :myshixun_id => myshixun, :is_subject => params[:is_subject]) rescue Exception => e flash[:error] = e.message logger.info("failed to exec shixun: current task id is #{e}") diff --git a/app/views/challenges/_single_or_multiple_question_show.html.erb b/app/views/challenges/_single_or_multiple_question_show.html.erb index cc540b285..b4a528a8d 100644 --- a/app/views/challenges/_single_or_multiple_question_show.html.erb +++ b/app/views/challenges/_single_or_multiple_question_show.html.erb @@ -13,7 +13,7 @@ <% @challenge_choose.challenge_questions.each_with_index do |option, index| %>
新建话题
+标题不能超过60个字符
+内容不能为空
++ + kosasa > 讨论 +
+ + +问吧
+ + 新话题 +
+ 1.练习口语 在线英语: http://dwz.cn/1XHGmL(免费在线口语课领取,外教一对一交流互动~) 特点:有正式课程挂网上公开,注册可免费听口语课,与外国老师实时交流哦~哈哈哈哈哈哈
++ 10 + 10 + 10 + + 最后更新:2小时前 +
+ + +
+ 1.练习口语 在线英语: http://dwz.cn/1XHGmL(免费在线口语课领取,外教一对一交流互动~) 特点:有正式课程挂网上公开,注册可免费听口语课,与外国老师实时交流哦~哈哈哈哈哈哈
++ 10 + 10 + 10 + + 最后更新:2小时前 +
+ + +
+ 1.练习口语 在线英语: http://dwz.cn/1XHGmL(免费在线口语课领取,外教一对一交流互动~) 特点:有正式课程挂网上公开,注册可免费听口语课,与外国老师实时交流哦~哈哈哈哈哈哈
++ 10 + 10 + 10 + + 最后更新:2小时前 +
+ + +
EDUCODERLOADING