|
|
|
@ -17,9 +17,9 @@
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mbt20 bgc">
|
|
|
|
|
<div class="mbt20 bgc width100">
|
|
|
|
|
<div class="ex-scores pd10 text-gray fs13">
|
|
|
|
|
<p class="clearfix">
|
|
|
|
|
<p class="clearfix inline-block width100">
|
|
|
|
|
<% if @exercise_single_ques_count > 0 %>
|
|
|
|
|
<span class="mr15">单选题<span class="mlr5"><%= @exercise_single_ques_count %></span>题,
|
|
|
|
|
共<span class="mlr5"><%= @exercise_single_ques_scores %></span>分</span>
|
|
|
|
@ -37,21 +37,23 @@
|
|
|
|
|
共<span class="mlr5"><%= @exercise_ques_null_scores %></span>分</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if @exercise_ques_main_count > 0 %>
|
|
|
|
|
<span class="mr15">主观题<span class="mlr5"><%= @exercise_ques_main_count %></span>题,
|
|
|
|
|
共<span class="mlr5"><%= @exercise_ques_main_scores %></span>分</span>
|
|
|
|
|
<span class="mr15">主观题<span class="mlr5"><%= @exercise_ques_main_count %></span>题,
|
|
|
|
|
共<span class="mlr5"><%= @exercise_ques_main_scores %></span>分</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if @exercise_ques_shixun_count > 0 %>
|
|
|
|
|
<span class="mr15">实训题<span class="mlr5"><%= @exercise_ques_shixun_count %></span>题,
|
|
|
|
|
共<span class="mlr5"><%= @exercise_ques_shixun_scores %></span>分</span>
|
|
|
|
|
<span class="mr15">实训题<span class="mlr5"><%= @exercise_ques_shixun_count %></span>题,
|
|
|
|
|
共<span class="mlr5"><%= @exercise_ques_shixun_scores %></span>分</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if @exercise_ques_count > 0 %>
|
|
|
|
|
<span class="pull-right">
|
|
|
|
|
共<span class="text-orange mlr5"><%= @exercise_ques_scores %></span>分
|
|
|
|
|
</span>
|
|
|
|
|
<span class="mr15 pull-right">
|
|
|
|
|
<span class="pull-right">
|
|
|
|
|
<% if @exercise_ques_count > 0 %>
|
|
|
|
|
<span class="mr15">
|
|
|
|
|
合计<span class="text-blue mlr5"><%= @exercise_ques_count %></span>题
|
|
|
|
|
</span>
|
|
|
|
|
<span>
|
|
|
|
|
共<span class="text-orange mlr5"><%= @exercise_ques_scores %></span>分
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -316,20 +318,24 @@
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if game.try(:lastest_code).present? && game.challenge.st == 0 %>
|
|
|
|
|
<% con_rows = content_line(game.lastest_code) %>
|
|
|
|
|
<div class="mbt20">
|
|
|
|
|
<p class="bgc" >
|
|
|
|
|
<% if game.try(:lastest_code).blank? %>
|
|
|
|
|
<% cha_path = challenge_path(game.challenge&.path) %>
|
|
|
|
|
<% latest_code = git_fle_content(game.myshixun.repo_path,cha_path) %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% latest_code = game.try(:lastest_code) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% con_rows = content_line(latest_code) %>
|
|
|
|
|
<div class="mbt20">
|
|
|
|
|
<p class="bgc" >
|
|
|
|
|
<span class="pd10" style="display:inherit;">
|
|
|
|
|
<span class="fl">最近通过的代码</span>
|
|
|
|
|
<span class="pull-right"><%= game.challenge.path %></span>
|
|
|
|
|
<span class="pull-right"><%= game.challenge&.path %></span>
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
<div class="bg-e pd10">
|
|
|
|
|
<textarea class="" id="content_show_<%= game.id %>" name="content" rows="<%= con_rows %>"><%= game.lastest_code %></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
</p>
|
|
|
|
|
<div class="bg-e pd10">
|
|
|
|
|
<textarea class="" id="content_show_<%= game.id %>" name="content" rows="<%= con_rows %>">><%= latest_code %></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|