]> iEval git - gruntmaster-page.git/commitdiff
Remind users about opens
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 15 Feb 2015 21:41:56 +0000 (23:41 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 15 Feb 2015 21:41:56 +0000 (23:41 +0200)
lib/Plack/App/Gruntmaster/HTML.pm
tmpl/pb.en

index cd65088a44a40c83fb7e7b21ac3d833897f2788e..947f039238b0fb20ba4a638ae25dbad03609ddd0 100644 (file)
@@ -195,6 +195,7 @@ sub process_pb {
                $div->find('tbody')->find('tr')->iter3($args{$data}, $titer);
        };
        $tree->fid('beginner')->iter3([grep {$args{$_}} qw/beginner easy medium hard/], $iter);
+       $tree->fid('open-alert')->detach unless $args{contest};
 }
 
 sub process_log_entry {
index ae1a0023722bac78047e646d637749b4d21e424f..bde0ae89d56fd4a4cfde7b9eb7075d41955b4ec4 100644 (file)
@@ -1,4 +1,8 @@
-<div>
+<div id="open-alert" class="alert alert-warning" role="alert">
+<h4>Friendly reminder</h4>
+The timer for a problem starts when you open the problem. You will lose points if you open all problems at the same time.
+</div>
+
 <div id="beginner">
 <h2>Beginner</h2>
 <table border class="table table-bordered table-striped table-fixed">
@@ -8,4 +12,3 @@
 <tr><td class="name"><a href="id">Name</a><td class="author">author<td class="owner"><a href="/us/id">Owner name</a>
 </table>
 </div>
-</div>
\ No newline at end of file
This page took 0.032739 seconds and 4 git commands to generate.