]> iEval git - gruntmaster-page.git/commitdiff
add time limits
authorS7012MY <l3asketballplayer@yahoo.com>
Fri, 14 Feb 2014 15:10:43 +0000 (17:10 +0200)
committerS7012MY <l3asketballplayer@yahoo.com>
Fri, 14 Feb 2014 15:10:43 +0000 (17:10 +0200)
lib/Gruntmaster/Page/Pb/Entry.pm
tmpl/pb_entry.en

index 84fbf052aa43efd9c0af6a61e3fa4d6a8f3466ed..fb78ba5c355116608a11e3079d723aa9ca537834 100644 (file)
@@ -18,10 +18,10 @@ sub _generate{
                mark_open $id, $user;
                debug $env => "Marking problem $id of contest $contest open by $user";
        }
-
+t 
        $htc->param(cansubmit => 1);
        if ($contest) {
-               $htc->param(cansubmit => time <= contest_end $contest);
+               $htc->param(cansubmit => (time <= contest_end $contest));
                $htc->param(contest => $contest);
        }
        $htc->param(formats => FORMATS);
@@ -31,6 +31,7 @@ sub _generate{
        $htc->param(author => problem_author $id);
        $htc->param(owner => problem_owner $id);
        $htc->param(statement => problem_statement $id);
+       $htc->param(timelimit => problem_timeout $id);
 }
 
 sub vary { 'Authorization' }
index aa519f4771a0346923eed313ea7b326277512ff4..81df915c560ac956dbc196743e932ef349fbc1ad 100644 (file)
@@ -8,6 +8,7 @@
 
 <h3>Problem information</h3>
 <dl>
+<dt>Time limit:</dt> <dd><tmpl_var timelimit></dd>
 <dt>Author</dt> <dd><tmpl_var author></dd>
 <dt>Owner</dt> <dd><tmpl_var owner></dd>
 </dl>
This page took 0.032804 seconds and 4 git commands to generate.