From e7c7594762ef3a9c782d8121319f6d1d86f22702 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 17 Apr 2017 10:29:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=99=BE=E5=BA=A6?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E5=81=9A=E6=B5=8B=E8=AF=95=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/games/_game_results.html.erb | 134 ++++++++++++++++--------- app/views/games/_games_list.html.erb | 2 +- 2 files changed, 87 insertions(+), 49 deletions(-) diff --git a/app/views/games/_game_results.html.erb b/app/views/games/_game_results.html.erb index 3a114cb6b..87a2080ab 100644 --- a/app/views/games/_game_results.html.erb +++ b/app/views/games/_game_results.html.erb @@ -12,64 +12,102 @@
-
- - - -
-
-
-
-
- <%= render :partial => 'game_result_order' %> - <% @test_sets.each_with_index do |test_set, index| %> -
-
- - 测试集 <%= index + 1 %> - <% unless test_set.result? %> - - <% end %> - <% unless test_set.is_public? %> - - <% end %> -
- <% if test_set.is_public? %> -
-
    -
  • 输入:<%= test_set.input %>
  • -
  • 实际输出:<%= test_set.actual_output %>
  • -
  • 期望输出:<%= test_set.output %>
  • -
-
- <% end %> +
+ +