# HG changeset patch # User jittat # Date 2009-04-21 02:48:58 # Node ID 5374337e0f8346fb2d324378ff1a3dc8df7de8ea # Parent 6eb47384a88d34bd9dab26d6f3c8d16f99f2995b fixed contest to be ready message bug (when not in contest mode) git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@368 6386c4cd-e34a-4fa8-8920-d93eb39b512e diff --git a/app/models/configuration.rb b/app/models/configuration.rb --- a/app/models/configuration.rb +++ b/app/models/configuration.rb @@ -89,6 +89,10 @@ return @@task_grading_info end + def self.contest_mode + return get(SYSTEM_MODE_CONF_KEY) == 'contest' + end + protected def self.convert_type(val,type) diff --git a/app/views/main/list.html.haml b/app/views/main/list.html.haml --- a/app/views/main/list.html.haml +++ b/app/views/main/list.html.haml @@ -14,7 +14,7 @@ %hr/ -- if (@user.site!=nil) and (@user.site.started!=true) +- if (Configuration.contest_mode) and (@user.site!=nil) and (@user.site.started!=true) %p=t 'main.start_soon' - if Configuration.show_tasks_to?(@user)