将代码测试编译器信息的冒号改为中文的

This commit is contained in:
yuanke 2016-05-20 17:25:56 +08:00
parent 6d7eca487f
commit 0e827abd35
2 changed files with 8 additions and 8 deletions

View File

@ -93,13 +93,13 @@
<div class="mt15">
<span>请使用 <%= @homework.language_name %> 语言编写</span>
<% if @homework.language.to_i == 1 %>
<span class = "fr">编译器信息:gcc version "4.4.7" 20120313 (Red Hat 4.4.7-11) (GCC)</span>
<span class = "fr">编译器信息gcc version "4.4.7" 20120313 (Red Hat 4.4.7-11) (GCC)</span>
<% elsif @homework.language.to_i == 2 %>
<span class = "fr">编译器信息:gcc version "4.4.7" 20120313 (Red Hat 4.4.7-11) (GCC)</span>
<span class = "fr">编译器信息gcc version "4.4.7" 20120313 (Red Hat 4.4.7-11) (GCC)</span>
<% elsif @homework.language.to_i == 3 %>
<span class = "fr">编译器信息:Python version "2.6.6"</span>
<span class = "fr">编译器信息Python version "2.6.6"</span>
<% elsif @homework.language.to_i == 4 %>
<span class = "fr">编译器信息:java version "1.7.0_85" OpenJDK Runtime Environment</span>
<span class = "fr">编译器信息java version "1.7.0_85" OpenJDK Runtime Environment</span>
<% end %>
<span data-language=<%=@homework.language%> style="display-hidden" id="data-language"></span>
</div>

View File

@ -76,13 +76,13 @@
<div class="mt15">
<span>请使用 <%= @homework.language_name %> 语言编写</span>
<% if @homework.language.to_i == 1 %>
<span class = "fr">编译器信息:gcc version "4.4.7" 20120313 (Red Hat 4.4.7-11) (GCC)</span>
<span class = "fr">编译器信息gcc version "4.4.7" 20120313 (Red Hat 4.4.7-11) (GCC)</span>
<% elsif @homework.language.to_i == 2 %>
<span class = "fr">编译器信息:gcc version "4.4.7" 20120313 (Red Hat 4.4.7-11) (GCC)</span>
<span class = "fr">编译器信息gcc version "4.4.7" 20120313 (Red Hat 4.4.7-11) (GCC)</span>
<% elsif @homework.language.to_i == 3 %>
<span class = "fr">编译器信息:Python version "2.6.6"</span>
<span class = "fr">编译器信息Python version "2.6.6"</span>
<% elsif @homework.language.to_i == 4 %>
<span class = "fr">编译器信息:java version "1.7.0_85" OpenJDK Runtime Environment</span>
<span class = "fr">编译器信息java version "1.7.0_85" OpenJDK Runtime Environment</span>
<% end %>
</div>
<div class="mt10">