# HG changeset patch # User Nattee Niparnan # Date 2014-09-15 16:08:17 # Node ID 22297d4b2aeef7ccb7c3241b760af6537875fabc # Parent 1c02c7fc8a895c6e19031b3da45f8a886e529af6 add thousand separater for mem reportt diff --git a/app/views/graders/submission.html.haml b/app/views/graders/submission.html.haml --- a/app/views/graders/submission.html.haml +++ b/app/views/graders/submission.html.haml @@ -21,9 +21,9 @@ %br/ = "Comment: #{@submission.grader_comment}" %br/ - = "Runtime (ms): #{@submission.max_runtime}" + = "Runtime (s): #{@submission.max_runtime}" %br/ - = "Memory (kb): #{@submission.peak_memory}" + = "Memory (kb): #{number_with_delimiter(@submission.peak_memory)}" %b Source code (first 10kb) //%div.highlight{:style => "border: 1px solid black;"} diff --git a/app/views/report/_task_hof.html.haml b/app/views/report/_task_hof.html.haml --- a/app/views/report/_task_hof.html.haml +++ b/app/views/report/_task_hof.html.haml @@ -63,7 +63,7 @@ = "#{link_to("#" + value[:runtime][:sub_id].to_s, controller: 'graders' , action: 'submission', id: value[:runtime][:sub_id])} )".html_safe %td = link_to value[:memory][:user], controller: 'users', action: 'profile', id: value[:memory][:user_id] - = "(#{value[:memory][:value]} @" + = "(#{number_with_delimiter(value[:memory][:value])} @" = "#{link_to("#" + value[:memory][:sub_id].to_s, controller: 'graders' , action: 'submission', id: value[:memory][:sub_id])} )".html_safe %td = link_to value[:length][:user], controller: 'users', action: 'profile', id: value[:length][:user_id]