contest page should now also display problem value
authorSergiu <srg.pscs@gmail.com>
Wed, 27 Apr 2016 21:34:28 +0000 (00:34 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 28 Apr 2016 13:16:40 +0000 (14:16 +0100)
lib/Plack/App/Gruntmaster/HTML.pm
tmpl/pb.en

index 95761824558e5838d730bc0da0c116a0a06abbe9..f18e5f65bb107cb7be0ad6a895ec830c8bf9065e 100644 (file)
@@ -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};
index b86aca6601b757af52e80a6a3c40aa16b9443b3b..009c46b242a786ed5b49cee510e4b1a9f0359736 100644 (file)
@@ -4,8 +4,8 @@ The timer for a problem starts when you open the problem. You will lose points i
 </div>
 
 <table class="table table-striped table-fixed">
-<thead><tr><th>Name<th>Author<th>Owner<th>Level</thead>
+<thead><tr><th>Name<th>Author<th>Owner<th>Level<th>Value</thead>
 
 <tbody>
-<tr><td class="name"><a href="id">Name</a><td class="author">author<td class="owner"><a href="/us/id">Owner name</a><td class="level">Beginner
+<tr><td class="name"><a href="id">Name</a><td class="author">author<td class="owner"><a href="/us/id">Owner name</a><td class="level">Beginner<td class="value">Value
 </table>
This page took 0.0116 seconds and 4 git commands to generate.