# HG changeset patch # User Nattee Niparnan # Date 2014-09-15 16:48:08 # Node ID d56910b3d8d2e05d8fca3ce02f373f8b1c9b178a # Parent 22297d4b2aeef7ccb7c3241b760af6537875fabc more report adjustment 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 @@ -17,7 +17,7 @@ %b Best Memory Usage: by #{link_to @best[:memory][:user], controller:'users', action:'profile', id:@best[:memory][:user_id]} using #{@best[:memory][:lang]} - with #{@best[:memory][:value]} kbytes + with #{number_with_delimiter(@best[:memory][:value])} kbytes at submission = link_to("#" + @best[:memory][:sub_id].to_s, controller: 'graders' , action: 'submission', id:@best[:memory][:sub_id]) %br/ diff --git a/app/views/report/login_stat.html.haml b/app/views/report/login_stat.html.haml --- a/app/views/report/login_stat.html.haml +++ b/app/views/report/login_stat.html.haml @@ -29,4 +29,4 @@ %td= l[:full_name] %td= l[:count] %td= l[:min] ? l[:min].in_time_zone.strftime('%Y-%m-%d %H:%M') : '' - %td= l[:max] ? time_ago_in_words(l[:max].in_time_zone) + ' ago' : '' + %td= l[:max] ? "#{l[:max].in_time_zone.strftime('%Y-%m-%d %H:%M')} (#{time_ago_in_words(l[:max].in_time_zone)} ago)" : ''