Show More
Commit Description:
shows submission timeouts
Commit Description:
shows submission timeouts
References:
File last commit:
Show/Diff file:
Action:
app/views/main/list.html.haml
| 59 lines
| 1.7 KiB
| text/x-haml
| HamlLexer
|
|
r192 | - content_for :head do | ||
|
r322 | = javascript_include_tag "announcement_refresh" | ||
|
r382 | = javascript_include_tag "toicontest" | ||
|
r192 | |||
|
r78 | = user_title_bar(@user) | ||
|
r226 | .announcementbox{:style => (@announcements.length==0 ? "display:none" : "")} | ||
%span{:class => 'title'} | ||||
Announcements | ||||
#announcementbox-body | ||||
= render :partial => 'announcement', :collection => @announcements | ||||
|
r97 | |||
|
r320 | - if GraderConfiguration.show_submitbox_to?(@user) | ||
|
r381 | = error_messages_for 'submission' | ||
= render :partial => 'submission_box' | ||||
|
r78 | |||
%hr/ | ||||
|
r320 | - if (GraderConfiguration.contest_mode?) and (@user.site!=nil) and (@user.site.started!=true) | ||
|
r162 | %p=t 'main.start_soon' | ||
|
r132 | |||
|
r320 | - if GraderConfiguration.show_tasks_to?(@user) | ||
- if not GraderConfiguration.multicontests? | ||||
|
r278 | %table.info | ||
%tr.info-head | ||||
%th | ||||
%th Tasks | ||||
%th # of sub(s) | ||||
%th Results | ||||
= render :partial => 'problem', :collection => @problems | ||||
- else | ||||
- @contest_problems.each do |cp| | ||||
|
r280 | - if cp[:problems].length > 0 | ||
%h2{:class =>'contest-title'} | ||||
= "#{cp[:contest] ? cp[:contest].title : 'Public problems'}" | ||||
%table.info | ||||
%tr.info-head | ||||
%th | ||||
%th Tasks | ||||
%th # of sub(s) | ||||
%th Results | ||||
= render :partial => 'problem', :collection => cp[:problems] | ||||
|
r278 | |||
|
r78 | |||
|
r107 | %hr/ | ||
|
r78 | |||
|
r243 | %script{:type => 'text/javascript'} | ||
= "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';" | ||||
|
r192 | Announcement.registerRefreshEventTimer(); | ||
|
r382 | TOIContest.timeOuts = {}; | ||
- @problems.each do |p| | ||||
- if (@submission_timeouts.has_key? p.id) and (@submission_timeouts[p.id] != nil) | ||||
= "TOIContest.timeOuts[#{p.id}] = #{@submission_timeouts[p.id]};" | ||||
- else | ||||
= "TOIContest.timeOuts[#{p.id}] = TOIContest.NO_TIMEOUT;" | ||||
TOIContest.refreshTimeOutMessages(); | ||||