From: Marius Gavrilescu Date: Thu, 15 Jan 2015 09:02:58 +0000 (+0200) Subject: Display problem level in pb_entry X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=6eb88ef91eba8f3db0098fe211bc8ecd63172f11;p=plack-app-gruntmaster.git Display problem level in pb_entry --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index f2ce142..5ea0626 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -141,6 +141,7 @@ sub process_pb_entry { $tree->fid('job_log')->edit_href(sub{$_ .= "&private=$args{private}"}) if $args{private}; $tree->content_handler( statement => literal $args{statement}, + level => ucfirst $args{level}, author => $args{author}, owner => $args{owner_name} || $args{owner}); if ($args{contest_stop}) { diff --git a/tmpl/pb_entry.en b/tmpl/pb_entry.en index f9df196..ae968e9 100644 --- a/tmpl/pb_entry.en +++ b/tmpl/pb_entry.en @@ -7,6 +7,7 @@
Author
author
Owner
owner
+
Level
Easy
Score
50
Contest ends in
01:30