diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -63,16 +63,21 @@ def user_title_bar(user) header = '' + time_left = '' # # if the contest is over - if Configuration[SYSTEM_MODE_CONF_KEY]=='contest' and - user.site!=nil and user.site.finished? - header = < THE CONTEST IS OVER CONTEST_OVER + end + if user.site!=nil + time_left = ". Time left: #{Time.at(user.site.time_left).gmtime.strftime("%X")}" + end end # @@ -94,7 +99,9 @@ #{user.full_name}
-Current time is #{format_short_time(Time.new.gmtime)} UTC
+Current time is #{format_short_time(Time.new.gmtime)} UTC +#{time_left} +
APIO'08