下一关修复
This commit is contained in:
parent
ba7e603bb0
commit
aebdd278a5
|
@ -14,7 +14,7 @@ class MyshixunsController < ApplicationController
|
||||||
outPut = params[:outPut]
|
outPut = params[:outPut]
|
||||||
message = Base64.decode64(params[:msg]) unless params[:msg].blank?
|
message = Base64.decode64(params[:msg]) unless params[:msg].blank?
|
||||||
game = Game.find(task_id)
|
game = Game.find(task_id)
|
||||||
if game.status == 0
|
if status == 0
|
||||||
game.update_attribute(:status, 2)
|
game.update_attribute(:status, 2)
|
||||||
game.update_attribute(:final_score, game.score)
|
game.update_attribute(:final_score, game.score)
|
||||||
message = nil
|
message = nil
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<h3 class="fl panel-inner-title"><span class="color-red mr10">第<%= @challenge.position %>关</span><%= @challenge.subject %></h3>
|
<h3 class="fl panel-inner-title"><span class="color-red mr10">第<%= @challenge.position %>关</span><%= @challenge.subject %></h3>
|
||||||
<p class="fr">
|
<p class="fr">
|
||||||
<a href="<%= edit_shixun_challenge_path(@challenge, :shixun_id => @shixun) %>" title="编辑"><i class="fa fa-pencil-square-o color-grey font-16 mr5"></i></a>
|
<a href="<%= edit_shixun_challenge_path(@challenge, :shixun_id => @shixun) %>" title="编辑"><i class="fa fa-pencil-square-o color-grey font-16 mr5"></i></a>
|
||||||
<a href="<%= shixun_challenge_path(@challenge, :shixun_id => @shixun) %>" title="删除" methods="delete"><i class="fa fa-trash-o color-grey font-16 mr5"></i></a>
|
<a href="<%= shixun_challenge_path(@challenge, :shixun_id => @shixun) %>" title="删除" method="delete" ><i class="fa fa-trash-o color-grey font-16 mr5"></i></a>
|
||||||
<!--<a href="#" title="复制"><i class="fa fa-files-o color-grey font-16 mr5"></i></a>-->
|
<!--<a href="#" title="复制"><i class="fa fa-files-o color-grey font-16 mr5"></i></a>-->
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
class RenameShixunTags < ActiveRecord::Migration
|
|
||||||
def up
|
|
||||||
rename_column :shixun_tags, :game_id, :challenge_id
|
|
||||||
end
|
|
||||||
|
|
||||||
def down
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Reference in New Issue