Show More
Commit Description:
merge
Commit Description:
merge
References:
File last commit:
Show/Diff file:
Action:
app/views/contest_management/index.html.haml
| 31 lines
| 912 B
| text/x-haml
| HamlLexer
|
|
r266 | %h1 Contest management | ||
|
r267 | .infobox | ||
|
r266 | |||
|
r267 | - if @num_contests>1 | ||
%b Multiple contests: | ||||
= "There are #{@num_contests} contests running." | ||||
- else | ||||
%b Single contest: | ||||
|
r322 | =raw "[#{link_to 'Add/remove contests', :controller => 'contests', :action => 'index'}]" | ||
|
r266 | |||
|
r267 | .infobox | ||
%b Web interface mode: | ||||
|
r320 | - if (not GraderConfiguration.contest_mode?) and (not GraderConfiguration.indv_contest_mode?) | ||
|
r267 | standard mode | ||
|
r320 | - elsif GraderConfiguration.contest_mode? | ||
|
r267 | normal contest mode. | ||
- else | ||||
individual contest mode. | ||||
|
r266 | |||
|
r267 | %br/ | ||
Change mode to: | ||||
|
r322 | =raw "[#{link_to 'standard', :action => 'change_contest_mode', :id => 'standard'}]" | ||
=raw "[#{link_to 'contest', :action => 'change_contest_mode', :id => 'contest'}]" | ||||
=raw "[#{link_to 'individual contest', :action => 'change_contest_mode', :id => 'indv-contest'}]" | ||||
|
r267 | |||
|
r320 | - if GraderConfiguration.indv_contest_mode? | ||
|
r266 | = render :partial => 'indv_contest_mode_index' | ||
%br/ | ||||