use Gruntmaster::Page::Base pb_entry => '<tmpl_var name>';
-use constant FORMATS => [qw/C CPP JAVA PERL PYTHON/];
+use constant FORMATS => [qw/C CPP JAVA PASCAL PERL PYTHON/];
sub _generate{
my ($self, $htc, $lang, $env, $contest, $id) = @_;
$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);
$htc->param(name => problem_name $id);
$htc->param(author => problem_author $id);
$htc->param(owner => problem_owner $id);
+ $htc->param(owner_name => do{ local $Gruntmaster::Data::contest; user_name $htc->param('owner')} );
$htc->param(statement => problem_statement $id);
+ $htc->param(timelimit => problem_timeout $id);
}
sub vary { 'Authorization' }
</div>
<div class="col-md-3">
+<div id="sidebar"></div>
+
+<h3>Problem information</h3>
<dl>
+<dt>Time limit:</dt> <dd><tmpl_var timelimit> s</dd>
<dt>Author</dt> <dd><tmpl_var author></dd>
- <dt>Owner</dt> <dd><tmpl_var owner></dd>
+ <dt>Owner</dt> <dd><a href="/us/<tmpl_var owner>"><tmpl_if owner_name><tmpl_var owner_name><tmpl_else><tmpl_var owner></tmpl_if></a></dd>
</dl>
<tmpl_if cansubmit>
</form>
</tmpl_if>
</div>
-</div>
+</div>