Description:
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
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r170:5374337e0f83 - - 2 files changed: 5 inserted, 1 deleted
@@ -89,6 +89,10 | |||||
|
89 | return @@task_grading_info |
|
89 | return @@task_grading_info |
|
90 | end |
|
90 | end |
|
91 |
|
91 | ||
|
|
92 | + def self.contest_mode | ||
|
|
93 | + return get(SYSTEM_MODE_CONF_KEY) == 'contest' | ||
|
|
94 | + end | ||
|
|
95 | + | ||
|
92 | protected |
|
96 | protected |
|
93 |
|
97 | ||
|
94 | def self.convert_type(val,type) |
|
98 | def self.convert_type(val,type) |
@@ -14,7 +14,7 | |||||
|
14 |
|
14 | ||
|
15 | %hr/ |
|
15 | %hr/ |
|
16 |
|
16 | ||
|
17 | - - if (@user.site!=nil) and (@user.site.started!=true) |
|
17 | + - if (Configuration.contest_mode) and (@user.site!=nil) and (@user.site.started!=true) |
|
18 | %p=t 'main.start_soon' |
|
18 | %p=t 'main.start_soon' |
|
19 |
|
19 | ||
|
20 | - if Configuration.show_tasks_to?(@user) |
|
20 | - if Configuration.show_tasks_to?(@user) |
You need to be logged in to leave comments.
Login now