From 1f0d9746c599663df5fd961b34db48ff1f40992d Mon Sep 17 00:00:00 2001 From: Sergiu Date: Thu, 28 Apr 2016 00:34:28 +0300 Subject: [PATCH] contest page should now also display problem value --- lib/Plack/App/Gruntmaster/HTML.pm | 1 + tmpl/pb.en | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index 9576182..f18e5f6 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -210,6 +210,7 @@ sub process_pb { my $iter = sub { my ($data, $tr) = @_; $tr->set_child_content(class => 'author', $data->{author}); + $tr->set_child_content(class => 'value', $data->{value}); $tr->set_child_content(class => 'level', ucfirst $data->{level}); $tr->fclass('name')->namedlink($data->{id}, $data->{name}); $tr->fclass('name')->find('a')->edit_href(sub {$_ .= "?contest=$args{args}{contest}"}) if $args{args}{contest}; diff --git a/tmpl/pb.en b/tmpl/pb.en index b86aca6..009c46b 100644 --- a/tmpl/pb.en +++ b/tmpl/pb.en @@ -4,8 +4,8 @@ The timer for a problem starts when you open the problem. You will lose points i - + -
NameAuthorOwnerLevel
NameAuthorOwnerLevelValue
NameauthorOwner nameBeginner +
NameauthorOwner nameBeginnerValue
-- 2.30.2