From 6eb88ef91eba8f3db0098fe211bc8ecd63172f11 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Thu, 15 Jan 2015 11:02:58 +0200 Subject: [PATCH] Display problem level in pb_entry --- lib/Plack/App/Gruntmaster/HTML.pm | 1 + tmpl/pb_entry.en | 1 + 2 files changed, 2 insertions(+) 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
-- 2.39.2