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)