实训结果排序
This commit is contained in:
parent
0a0ee2acb1
commit
a7337ce82a
|
@ -16,13 +16,13 @@
|
||||||
<! for(var i=0;i< results.length; i++) { !>
|
<! for(var i=0;i< results.length; i++) { !>
|
||||||
<! if(results[i][0] == 0){ !>
|
<! if(results[i][0] == 0){ !>
|
||||||
<div class="clearfix history-success mb10">
|
<div class="clearfix history-success mb10">
|
||||||
<span class="icon-success fl mr5"><!= i+1 !></span>
|
<span class="icon-success fl mr5"><!= results.length - i !></span>
|
||||||
<p class="fl">恭喜,您已经完成了本任务!</p>
|
<p class="fl">恭喜,您已经完成了本任务!</p>
|
||||||
<a href="/myshixuns/<%= @myshixun.id %>/games/<%= @game.id %>/outputs_show?game_output_id=<!= results[i][1] !>" class="fr mr10" data-remote="true">详情</a>
|
<a href="/myshixuns/<%= @myshixun.id %>/games/<%= @game.id %>/outputs_show?game_output_id=<!= results[i][1] !>" class="fr mr10" data-remote="true">详情</a>
|
||||||
</div>
|
</div>
|
||||||
<! }else{ !>
|
<! }else{ !>
|
||||||
<div class="clearfix history-fail mb10">
|
<div class="clearfix history-fail mb10">
|
||||||
<span class="icon-fail fl mr5"><!= i+1 !></span>
|
<span class="icon-fail fl mr5"><!= results.length - i !></span>
|
||||||
<p class="fl">错误结果!</p>
|
<p class="fl">错误结果!</p>
|
||||||
<a href="/myshixuns/<%= @myshixun.id %>/games/<%= @game.id %>/outputs_show?game_output_id=<!= results[i][1] !>" class="fr mr10" data-remote="true">详情</a>
|
<a href="/myshixuns/<%= @myshixun.id %>/games/<%= @game.id %>/outputs_show?game_output_id=<!= results[i][1] !>" class="fr mr10" data-remote="true">详情</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
|
|
@ -12,13 +12,13 @@
|
||||||
<! for(var i=0;i< results.length; i++) { !>
|
<! for(var i=0;i< results.length; i++) { !>
|
||||||
<! if(results[i][0] == 0){ !>
|
<! if(results[i][0] == 0){ !>
|
||||||
<div class="clearfix history-success mb10">
|
<div class="clearfix history-success mb10">
|
||||||
<span class="icon-success fl mr5"><!= i+1 !></span>
|
<span class="icon-success fl mr5"><!= results.length - i !></span>
|
||||||
<p class="fl">恭喜,您已经完成了本任务!</p>
|
<p class="fl">恭喜,您已经完成了本任务!</p>
|
||||||
<a href="/myshixuns/<%= @myshixun.id %>/games/<%= @game.id %>/outputs_show?game_output_id=<!= results[i][1] !>" class="fr mr10" data-remote="true">详情</a>
|
<a href="/myshixuns/<%= @myshixun.id %>/games/<%= @game.id %>/outputs_show?game_output_id=<!= results[i][1] !>" class="fr mr10" data-remote="true">详情</a>
|
||||||
</div>
|
</div>
|
||||||
<! }else{ !>
|
<! }else{ !>
|
||||||
<div class="clearfix history-fail mb10">
|
<div class="clearfix history-fail mb10">
|
||||||
<span class="icon-fail fl mr5"><!= i+1 !></span>
|
<span class="icon-fail fl mr5"><!= results.length - i !></span>
|
||||||
<p class="fl">错误结果!</p>
|
<p class="fl">错误结果!</p>
|
||||||
<a href="/myshixuns/<%= @myshixun.id %>/games/<%= @game.id %>/outputs_show?game_output_id=<!= results[i][1] !>" class="fr mr10" data-remote="true">详情</a>
|
<a href="/myshixuns/<%= @myshixun.id %>/games/<%= @game.id %>/outputs_show?game_output_id=<!= results[i][1] !>" class="fr mr10" data-remote="true">详情</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
|
Loading…
Reference in New Issue