作业详情页的测试集样式调整
This commit is contained in:
parent
e75f320244
commit
b49e29860d
|
@ -52,14 +52,14 @@
|
||||||
<table class="mt5 test-set-table">
|
<table class="mt5 test-set-table">
|
||||||
<tr>
|
<tr>
|
||||||
<th width="25"> </th>
|
<th width="25"> </th>
|
||||||
<th width="290">测试集输入</th>
|
<th width="290" style="max-width:290px;">测试集输入</th>
|
||||||
<th width="290">测试集输出</th>
|
<th width="290" style="max-width:290px;">测试集输出</th>
|
||||||
</tr>
|
</tr>
|
||||||
<% homework.homework_tests.each_with_index do |test, i| %>
|
<% homework.homework_tests.each_with_index do |test, i| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="test_td_min"><%=i+1 %></td>
|
<td class="test_td_min"><%=i+1 %></td>
|
||||||
<td><%=test.input %></td>
|
<td><pre style="max-width:290px; word-wrap:break-word; white-space:pre-wrap;"><%=test.input %></pre></td>
|
||||||
<td ><%=test.output %></td>
|
<td><pre style="max-width:290px; word-wrap:break-word; white-space:pre-wrap;"><%=test.output %></pre></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue