From 89d8eeb764f8903d2f506124ff3dd93444d06d5d Mon Sep 17 00:00:00 2001
From: Marius Gavrilescu <marius@ieval.ro>
Date: Sun, 15 Feb 2015 23:41:56 +0200
Subject: [PATCH] Remind users about opens

---
 lib/Plack/App/Gruntmaster/HTML.pm | 1 +
 tmpl/pb.en                        | 7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm
index cd65088..947f039 100644
--- a/lib/Plack/App/Gruntmaster/HTML.pm
+++ b/lib/Plack/App/Gruntmaster/HTML.pm
@@ -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 {
diff --git a/tmpl/pb.en b/tmpl/pb.en
index ae1a002..bde0ae8 100644
--- a/tmpl/pb.en
+++ b/tmpl/pb.en
@@ -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
-- 
2.39.5