dev_forum
SylorHuang 6 years ago
parent e60d6f7abb
commit 148ac868e7

@ -2,6 +2,7 @@ class ExerciseUserPdfService
include ExercisesHelper
include ApplicationHelper
include StudentWorksHelper
include GitHelper
attr_reader :exercise, :ex_user, :request_url

@ -333,6 +333,7 @@ textarea{
}
.ex-scores{
height: auto ;
word-break: break-all;
}

@ -316,20 +316,23 @@
</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 %>
<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"><%= latest_code %></textarea>
</div>
<% end %>
</div>
</div>
</div>
<% end %>

Loading…
Cancel
Save