diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index 43918ed10..36a48f2a3 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -103,11 +103,10 @@ class StudentWorkController < ApplicationController if result["status"].to_i != -2 #result["results"].first['output'] = result["results"].first['output'].gsub(" ","□") #result["results"].first['result'] = result["results"].first['result'].gsub(" ","□") + space_replace_1(result["results"].first['output']) + space_replace_1(result["results"].first['result']) end - space_replace_1(result["results"].first['output']) - space_replace_1(result["results"].first['result']) - logger.debug result #-1 默认值 0全部正确并结束 2 超时 -2 编译错误 diff --git a/app/views/users/_course_file_form.html.erb b/app/views/users/_course_file_form.html.erb index fa5c0a578..1c10cdbeb 100644 --- a/app/views/users/_course_file_form.html.erb +++ b/app/views/users/_course_file_form.html.erb @@ -16,6 +16,7 @@ <% end %> +
diff --git a/app/views/users/_course_message_form.html.erb b/app/views/users/_course_message_form.html.erb index 94e0f65ec..1ef69ea8f 100644 --- a/app/views/users/_course_message_form.html.erb +++ b/app/views/users/_course_message_form.html.erb @@ -15,6 +15,7 @@ <% end %>
+
diff --git a/app/views/users/_course_news_form.html.erb b/app/views/users/_course_news_form.html.erb index a244b8678..736802244 100644 --- a/app/views/users/_course_news_form.html.erb +++ b/app/views/users/_course_news_form.html.erb @@ -15,6 +15,7 @@ <% end %>
+
diff --git a/app/views/users/_project_file_form.html.erb b/app/views/users/_project_file_form.html.erb index fc9765209..74e8fecc2 100644 --- a/app/views/users/_project_file_form.html.erb +++ b/app/views/users/_project_file_form.html.erb @@ -15,6 +15,7 @@ <% end %>
+
diff --git a/app/views/users/_project_message_form.html.erb b/app/views/users/_project_message_form.html.erb index 1084142f9..635a4964e 100644 --- a/app/views/users/_project_message_form.html.erb +++ b/app/views/users/_project_message_form.html.erb @@ -1,25 +1,27 @@ -<%= form_tag share_message_to_project_user_path(user), :remote => true, :id=>'projects_list_form' %> +<%= form_tag share_message_to_project_user_path(user), :remote => true, :id => 'projects_list_form' %>
<%= hidden_field_tag(:send_id, send_id) %> <%= hidden_field_tag(:send_ids, send_ids) %>
- <% if !projects.empty? %> + <% if !projects.empty? %> <% projects.each do |project| %>
  • -
  • <%= project.name%>
  • +
  • <%= project.name %>
<% end %> -
-
-
-
- - <%= submit_tag '确定',:class=>'sendSourceText',:onfocus=>'this.blur();' %> -
- -
-
- <% end %> \ No newline at end of file + <% end %> +
+
+
+
+
+ + <%= submit_tag '确定', :class => 'sendSourceText', :onfocus => 'this.blur();' %> +
+
+ 取消
+
+
\ No newline at end of file diff --git a/app/views/users/_project_news_form.html.erb b/app/views/users/_project_news_form.html.erb index 2293f942a..38e65bdfc 100644 --- a/app/views/users/_project_news_form.html.erb +++ b/app/views/users/_project_news_form.html.erb @@ -15,6 +15,7 @@ <% end %> +
diff --git a/app/views/users/_send_homework_to_course.html.erb b/app/views/users/_send_homework_to_course.html.erb index b19fbd1a8..67fd36c3c 100644 --- a/app/views/users/_send_homework_to_course.html.erb +++ b/app/views/users/_send_homework_to_course.html.erb @@ -1,4 +1,4 @@ -
+
发送到
@@ -8,33 +8,9 @@
- <%= form_tag send_homework_to_course_user_path(user),:remote=>true,:id=>'choose_course_list_form' %> -
- <%= hidden_field_tag(:send_id, send_id) %> -
- <% if !courses.empty? %> - <% courses.each do |course| %> -
    -
  • - -
  • -
  • <%= truncate(course.name,:lendght=>25) + '['+current_time_and_term(course) + ']'%>
  • -
- <% end %> -
+
+ <%= render :partial => "users/send_homework_to_course_form", :locals => {:user => user, :courses => courses, :send_id => send_id} %>
-
- -
-
- 确定 -
-
- 取消 -
-
-
- <% end %>