|
|
|
@ -13,13 +13,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="plr15">
|
|
|
|
|
<p class="text-gray">
|
|
|
|
|
<%= @exercise.try(:exercise_description).nil? ? "" : @exercise.try(:exercise_description).html_safe %>
|
|
|
|
|
<%= @exercise.try(:exercise_description).nil? ? "" : @exercise.try(:exercise_description)&.html_safe %>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mbt20 bgc">
|
|
|
|
|
<div class="ex-scores pd10 text-gray fs13">
|
|
|
|
|
<div class="inline-block pull-left">
|
|
|
|
|
<p class="clearfix">
|
|
|
|
|
<% 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>
|
|
|
|
@ -44,11 +44,16 @@
|
|
|
|
|
<span class="mr15">实训题<span class="mlr5"><%= @exercise_ques_shixun_count %></span>题,
|
|
|
|
|
共<span class="mlr5"><%= @exercise_ques_shixun_scores %></span>分</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="text-align:right;word-break:keep-all;">
|
|
|
|
|
合计<span class="text-blue mlr5"><%= @exercise_ques_count %></span>题,
|
|
|
|
|
共<span class="text-orange mlr5"><%= @exercise_ques_scores %></span>分
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<% 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="text-blue mlr5"><%= @exercise_ques_count %></span>题
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mbt10">
|
|
|
|
@ -59,7 +64,7 @@
|
|
|
|
|
<span class="mlr5"><span class="line-line bg-green"></span>正确</span>
|
|
|
|
|
<span class="mlr5"><span class="line-line bg-red"></span>错误</span>
|
|
|
|
|
<span class="mlr5"><span class="line-line bg-orange"></span>部分得分</span>
|
|
|
|
|
<span class="pull-right">总分:<span class="text-orange"><%= @exercise_user.score %>分</span></span>
|
|
|
|
|
<span class="pull-right">总分:<span class="text-orange"><%= @exercise_user&.score %>分</span></span>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pbt5">
|
|
|
|
@ -162,14 +167,14 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pbt5">
|
|
|
|
|
<% if q_type == 5 %>
|
|
|
|
|
<span class="ques-title"><%= q.shixun_name.html_safe %></span>
|
|
|
|
|
<span class="ques-title"><%= q.shixun_name&.html_safe %></span>
|
|
|
|
|
<div class="mt8 text-gray">
|
|
|
|
|
<span><%= q.question_title.html_safe %></span>
|
|
|
|
|
<span><%= q.question_title&.html_safe %></span>
|
|
|
|
|
</div>
|
|
|
|
|
<% elsif q_type == 4 %>
|
|
|
|
|
<span class="ques-title"><%= q.question_title.html_safe %></span>
|
|
|
|
|
<span class="ques-title"><%= q.question_title&.html_safe %></span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span class="ques-title"><%= q.question_title.html_safe %></span>
|
|
|
|
|
<span class="ques-title"><%= q.question_title&.html_safe %></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -218,13 +223,13 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<p class="pbt10 flex-nowrap">
|
|
|
|
|
<span class="pull-left line-34">答案(填空<%= index+1 %>):</span>
|
|
|
|
|
<span class="null-answer"><%= check_answer.html_safe %></span>
|
|
|
|
|
<span class="null-answer"><%= check_answer&.html_safe %></span>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% elsif q_type == 4 %>
|
|
|
|
|
<% check_answer = (user_answer.present? ? user_answer.first.answer_text : '--') %>
|
|
|
|
|
<p class="flex-nowrap">
|
|
|
|
|
<span class="null-answer main-height"><%= check_answer.html_safe %></span>
|
|
|
|
|
<span class="null-answer main-height"><%= check_answer&.html_safe %></span>
|
|
|
|
|
</p>
|
|
|
|
|
<% else %>
|
|
|
|
|
<div class="mbt10">
|
|
|
|
|