From 346f4d60187663ec064a7d7509205983210c37ef Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Fri, 31 Jul 2015 17:27:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E5=93=81=E5=88=97=E8=A1=A8=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=EF=BC=8C=E5=AD=A6=E7=94=9F=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/homework_common/index.html.erb | 38 +++++++++++++----------- app/views/student_work/index.html.erb | 36 +++++++++++----------- 2 files changed, 39 insertions(+), 35 deletions(-) diff --git a/app/views/homework_common/index.html.erb b/app/views/homework_common/index.html.erb index 6847da2c7..4a804ae60 100644 --- a/app/views/homework_common/index.html.erb +++ b/app/views/homework_common/index.html.erb @@ -48,30 +48,32 @@
- <% if homework.homework_type == 2 && homework.homework_detail_programing && @is_teacher%> - - - "> - - - - <% homework.homework_tests.each do |test|%> + <% if homework.homework_type == 2 && homework.homework_detail_programing%> + <% if @is_teacher%> +
- 输入 - - 输出 -
+ "> - <% end%> - -
- <%=test.input%> + 输入 - <%= test.output%> + 输出
-
+ <% homework.homework_tests.each do |test|%> + "> + + <%=test.input%> + + + <%= test.output%> + + + <% end%> + + +
+ <% end%>
开发语言: diff --git a/app/views/student_work/index.html.erb b/app/views/student_work/index.html.erb index 92f6f93e0..3783d67d3 100644 --- a/app/views/student_work/index.html.erb +++ b/app/views/student_work/index.html.erb @@ -137,29 +137,31 @@
<% if @homework.homework_type == 2 && @homework.homework_detail_programing%> - - - "> - - - - <% @homework.homework_tests.each do |test|%> + <% if @is_teacher%> +
- 输入 - - 输出 -
+ "> - <% end%> - -
- <%=test.input%> + 输入 - <%= test.output%> + 输出
-
+ <% homework.homework_tests.each do |test|%> + "> + + <%=test.input%> + + + <%= test.output%> + + + <% end%> + + +
+ <% end%>
开发语言: